diff options
Diffstat (limited to 'src/svg/path-string.cpp')
| -rw-r--r-- | src/svg/path-string.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/svg/path-string.cpp b/src/svg/path-string.cpp index 7d0092dfa..a1dd3e49c 100644 --- a/src/svg/path-string.cpp +++ b/src/svg/path-string.cpp @@ -26,9 +26,12 @@ static int const maxprec = 16; int Inkscape::SVG::PathString::numericprecision; int Inkscape::SVG::PathString::minimumexponent; Inkscape::SVG::PATHSTRING_FORMAT Inkscape::SVG::PathString::format; - +bool forcerepeatcommands = prefs->getBool("/options/svgoutput/disable_optimizations" ); +if (!forcerepeatcommands) { + forcerepeatcommands = Inkscape::Preferences::get()->getBool("/options/svgoutput/forcerepeatcommands"); +} Inkscape::SVG::PathString::PathString() : - force_repeat_commands(Inkscape::Preferences::get()->getBool("/options/svgoutput/forcerepeatcommands")) + force_repeat_commands(forcerepeatcommands) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); format = (PATHSTRING_FORMAT)prefs->getIntLimited("/options/svgoutput/pathstring_format", 1, 0, PATHSTRING_FORMAT_SIZE - 1 ); |
