From 0624d93323c24936b9bc83c9836e87c6645b8582 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Tue, 27 Feb 2018 00:19:22 +0100 Subject: Fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60693688 --- src/svg/path-string.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/svg/path-string.cpp') 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 ); -- cgit v1.2.3