summaryrefslogtreecommitdiffstats
path: root/src/svg/stringstream.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-10-31 21:21:41 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-10-31 21:21:41 +0000
commitb9aac57805b343c602e06be66bc87ede91ad44de (patch)
tree73f42108a3faf67accb389e0c6c98280bd6c551e /src/svg/stringstream.cpp
parentfix off-by-one error: setting tprec to 6 was actually writing 7 digits (diff)
downloadinkscape-b9aac57805b343c602e06be66bc87ede91ad44de.tar.gz
inkscape-b9aac57805b343c602e06be66bc87ede91ad44de.zip
make svg numeric precision, minimum exponent, and the use of named colors (as well as shortened color triads like #ccc) configurable via prefs
(bzr r1877)
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 &