From fa705a24dc4af5fb9f3bca2c3f52896a0466b694 Mon Sep 17 00:00:00 2001 From: Jabiertxo Arraiza Cenoz Date: Tue, 27 Feb 2018 10:38:03 +0100 Subject: fix bug compiling --- src/svg/path-string.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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 ); -- cgit v1.2.3