diff options
| author | Jabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es> | 2018-02-27 09:38:03 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-05-09 19:42:11 +0000 |
| commit | fa705a24dc4af5fb9f3bca2c3f52896a0466b694 (patch) | |
| tree | 498d74e33afc50844d739956c22cc66caac6b298 /src/svg/path-string.cpp | |
| parent | fix compiling bugs (diff) | |
| download | inkscape-fa705a24dc4af5fb9f3bca2c3f52896a0466b694.tar.gz inkscape-fa705a24dc4af5fb9f3bca2c3f52896a0466b694.zip | |
fix bug compiling
Diffstat (limited to 'src/svg/path-string.cpp')
| -rw-r--r-- | src/svg/path-string.cpp | 7 |
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 ); |
