diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-02-26 23:19:22 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-05-09 19:42:10 +0000 |
| commit | 0624d93323c24936b9bc83c9836e87c6645b8582 (patch) | |
| tree | ec04596b0b9346bf0d61c982fb372f90834bf982 /src/svg/path-string.cpp | |
| parent | Add patch to branch https://inkscape.org/en/paste/10993/ (diff) | |
| download | inkscape-0624d93323c24936b9bc83c9836e87c6645b8582.tar.gz inkscape-0624d93323c24936b9bc83c9836e87c6645b8582.zip | |
Fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60693688
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 ); |
