diff options
| author | Ted Gould <ted@gould.cx> | 2008-10-27 18:03:09 +0000 |
|---|---|---|
| committer | Ted Gould <ted@canonical.com> | 2008-10-27 18:03:09 +0000 |
| commit | 7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902 (patch) | |
| tree | 7d3a2b95b84a03a19cb132cdf88bea0ab6dc4773 /src/xml/repr-io.cpp | |
| parent | Merging from trunk (diff) | |
| download | inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.tar.gz inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.zip | |
From trunk
(bzr r6885)
Diffstat (limited to 'src/xml/repr-io.cpp')
| -rw-r--r-- | src/xml/repr-io.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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( "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n" ); |
