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/xml/repr-io.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/xml/repr-io.cpp') diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp index 2a5125375..371af729f 100644 --- a/src/xml/repr-io.cpp +++ b/src/xml/repr-io.cpp @@ -29,7 +29,7 @@ #include "io/stringstream.h" #include "io/gzipstream.h" -#include "prefs-utils.h" +#include "preferences.h" using Inkscape::IO::Writer; using Inkscape::Util::List; @@ -511,8 +511,9 @@ void sp_repr_save_writer(Document *doc, Inkscape::IO::Writer *out, gchar const *default_ns) { - int inlineattrs = prefs_get_int_attribute("options.svgoutput", "inlineattrs", 0); - int indent = prefs_get_int_attribute("options.svgoutput", "indent", 2); + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + bool inlineattrs = prefs->getBool("/options/svgoutput/inlineattrs"); + int indent = prefs->getInt("/options/svgoutput/indent", 2); /* fixme: do this The Right Way */ out->writeString( "\n" ); -- cgit v1.2.3