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/xml | |
| 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/xml')
| -rw-r--r-- | src/xml/repr-io.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp index 2ff9d4776..c7b483dcb 100644 --- a/src/xml/repr-io.cpp +++ b/src/xml/repr-io.cpp @@ -872,7 +872,10 @@ static void sp_repr_write_stream_root_element(Node *repr, Writer &out, if (clean) sp_attribute_clean_tree( repr ); // Sort attributes in a canonical order (helps with "diffing" SVG files). - bool sort = prefs->getBool("/options/svgoutput/sort_attributes"); + bool sort = prefs->getBool("/options/svgoutput/disable_optimizations"); + if (!sort) { + sort = prefs->getBool("/options/svgoutput/sort_attributes"); + } if (sort) sp_attribute_sort_tree( repr ); Glib::QueryQuark xml_prefix=g_quark_from_static_string("xml"); |
