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/extension/implementation/script.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/extension/implementation/script.cpp')
| -rw-r--r-- | src/extension/implementation/script.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 42867b823..f1b46e8ac 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -418,28 +418,11 @@ ScriptDocCache::ScriptDocCache (Inkscape::UI::View::View * view) : SPDesktop *desktop = (SPDesktop *) view; sp_namedview_document_from_window(desktop); Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - bool sort_attributes = prefs->getBool("/options/svgoutput/sort_attributes", false); - bool incorrect_style_properties_remove = prefs->getBool("/options/svgoutput/incorrect_style_properties_remove", false); - bool incorrect_attributes_remove = prefs->getBool("/options/svgoutput/incorrect_attributes_remove", false); - bool usenamedcolors = prefs->getBool("/options/svgoutput/usenamedcolors", false); - bool forcerepeatcommands = prefs->getBool("/options/svgoutput/forcerepeatcommands", false); - bool style_defaults_remove = prefs->getBool("/options/svgoutput/style_defaults_remove", false); - prefs->setBool("/options/svgoutput/sort_attributes", false); - prefs->setBool("/options/svgoutput/incorrect_style_properties_remove", false); - prefs->setBool("/options/svgoutput/incorrect_attributes_remove", false); - prefs->setBool("/options/svgoutput/usenamedcolors", false); - prefs->setBool("/options/svgoutput/forcerepeatcommands", false); - prefs->setBool("/options/svgoutput/style_defaults_remove", false); + prefs->setBool("/options/svgoutput/disable_optimizations", true); Inkscape::Extension::save( Inkscape::Extension::db.get(SP_MODULE_KEY_OUTPUT_SVG_INKSCAPE), view->doc(), _filename.c_str(), false, false, false, Inkscape::Extension::FILE_SAVE_METHOD_TEMPORARY); - - prefs->setBool("/options/svgoutput/sort_attributes", sort_attributes); - prefs->setBool("/options/svgoutput/incorrect_style_properties_remove", incorrect_style_properties_remove); - prefs->setBool("/options/svgoutput/incorrect_attributes_remove", incorrect_attributes_remove); - prefs->setBool("/options/svgoutput/usenamedcolors", usenamedcolors); - prefs->setBool("/options/svgoutput/forcerepeatcommands", forcerepeatcommands); - prefs->setBool("/options/svgoutput/style_defaults_remove", style_defaults_remove); + prefs->setBool("/options/svgoutput/disable_optimizations", false); return; } |
