From 7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 27 Oct 2008 13:03:09 -0500 Subject: From trunk (bzr r6885) --- src/svg/css-ostringstream.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/svg/css-ostringstream.cpp') 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 #include @@ -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 -- cgit v1.2.3