1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

JSON: Fix issue where max decimal places option was ignored during serialisation

This commit is contained in:
reuk 2024-04-29 20:16:39 +01:00
parent 34adc50472
commit 7c2a5fc758
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
2 changed files with 22 additions and 5 deletions

View file

@ -442,7 +442,7 @@ void JSON::writeToStream (OutputStream& out, const var& v, const FormatOptions&
if (juce_isfinite (d))
{
out << serialiseDouble (d);
out << serialiseDouble (d, opt.getMaxDecimalPlaces());
}
else
{