From b9aac57805b343c602e06be66bc87ede91ad44de Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 31 Oct 2006 21:21:41 +0000 Subject: 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) --- src/svg/stringstream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/svg/stringstream.cpp') 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 & -- cgit v1.2.3