Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
274e3878
Commit
274e3878
authored
Jul 31, 2021
by
Volker Krause
Browse files
Fix number to string deserialization for large integer numbers
parent
e30ca412
Pipeline
#72773
passed with stage
in 9 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/jsonlddocument.cpp
View file @
274e3878
...
...
@@ -85,6 +85,11 @@ static QVariant propertyValue(const QMetaProperty &prop, const QJsonValue &v)
switch
(
prop
.
type
())
{
case
QVariant
::
String
:
if
(
v
.
isDouble
())
{
double
i
=
0.0
;
const
auto
frac
=
std
::
modf
(
v
.
toDouble
(),
&
i
);
if
(
frac
==
0.0
)
{
return
QString
::
number
(
static_cast
<
uint64_t
>
(
i
));
}
return
QString
::
number
(
v
.
toDouble
());
}
return
v
.
toString
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment