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:
parent
34adc50472
commit
7c2a5fc758
2 changed files with 22 additions and 5 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue