summaryrefslogtreecommitdiffstats
path: root/src/svg/css-ostringstream.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/css-ostringstream.cpp
parentMerging from trunk (diff)
downloadinkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.tar.gz
inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.zip
From trunk
(bzr r6885)
Diffstat (limited to 'src/svg/css-ostringstream.cpp')
-rw-r--r--src/svg/css-ostringstream.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/svg/css-ostringstream.cpp b/src/svg/css-ostringstream.cpp
index 362eb7662..a6eb2783e 100644
--- a/src/svg/css-ostringstream.cpp
+++ b/src/svg/css-ostringstream.cpp
@@ -1,6 +1,6 @@
#include "svg/css-ostringstream.h"
#include "svg/strip-trailing-zeros.h"
-#include "prefs-utils.h"
+#include "preferences.h"
#include <glib/gmessages.h>
#include <glib/gstrfuncs.h>
@@ -14,7 +14,8 @@ Inkscape::CSSOStringStream::CSSOStringStream()
/* 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));
}
static void