summaryrefslogtreecommitdiffstats
path: root/src/svg/stringstream.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-10-27 18:03:09 +0000
committerTed Gould <ted@canonical.com>2008-10-27 18:03:09 +0000
commit7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902 (patch)
tree7d3a2b95b84a03a19cb132cdf88bea0ab6dc4773 /src/svg/stringstream.cpp
parentMerging from trunk (diff)
downloadinkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.tar.gz
inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.zip
From trunk
(bzr r6885)
Diffstat (limited to 'src/svg/stringstream.cpp')
-rw-r--r--src/svg/stringstream.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/svg/stringstream.cpp b/src/svg/stringstream.cpp
index 62e20961a..6b9e512a1 100644
--- a/src/svg/stringstream.cpp
+++ b/src/svg/stringstream.cpp
@@ -1,6 +1,6 @@
#include "svg/stringstream.h"
#include "svg/strip-trailing-zeros.h"
-#include "prefs-utils.h"
+#include "preferences.h"
#include <2geom/point.h>
Inkscape::SVGOStringStream::SVGOStringStream()
@@ -13,7 +13,8 @@ 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(prefs_get_int_attribute("options.svgoutput", "numericprecision", 8));
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ ostr.precision(prefs->getInt("/options/svgoutput/numericprecision", 8));
}
Inkscape::SVGOStringStream &