summaryrefslogtreecommitdiffstats
path: root/src/svg/stringstream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg/stringstream.cpp')
-rw-r--r--src/svg/stringstream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svg/stringstream.cpp b/src/svg/stringstream.cpp
index 5ef5c2ec0..cdb29c865 100644
--- a/src/svg/stringstream.cpp
+++ b/src/svg/stringstream.cpp
@@ -1,5 +1,6 @@
#include "svg/stringstream.h"
#include "svg/strip-trailing-zeros.h"
+#include "prefs-utils.h"
Inkscape::SVGOStringStream::SVGOStringStream()
{
@@ -11,7 +12,7 @@ Inkscape::SVGOStringStream::SVGOStringStream()
/* This one is (currently) needed though, as we currently use ostr.precision as a sort of
variable for storing the desired precision: see our two precision methods and our operator<<
methods for float and double. */
- ostr.precision(8);
+ ostr.precision(prefs_get_int_attribute("options.svgoutput", "numericprecision", 8));
}
Inkscape::SVGOStringStream &