summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es>2018-02-27 09:38:03 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-05-09 19:42:11 +0000
commitfa705a24dc4af5fb9f3bca2c3f52896a0466b694 (patch)
tree498d74e33afc50844d739956c22cc66caac6b298 /src
parentfix compiling bugs (diff)
downloadinkscape-fa705a24dc4af5fb9f3bca2c3f52896a0466b694.tar.gz
inkscape-fa705a24dc4af5fb9f3bca2c3f52896a0466b694.zip
fix bug compiling
Diffstat (limited to 'src')
-rw-r--r--src/svg/path-string.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/svg/path-string.cpp b/src/svg/path-string.cpp
index a1dd3e49c..2fa2c8f02 100644
--- a/src/svg/path-string.cpp
+++ b/src/svg/path-string.cpp
@@ -26,12 +26,9 @@ 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(forcerepeatcommands)
+ force_repeat_commands(!Inkscape::Preferences::get()->getBool("/options/svgoutput/disable_optimizations" ) && Inkscape::Preferences::get()->getBool("/options/svgoutput/forcerepeatcommands"))
{
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
format = (PATHSTRING_FORMAT)prefs->getIntLimited("/options/svgoutput/pathstring_format", 1, 0, PATHSTRING_FORMAT_SIZE - 1 );