diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-05-09 19:47:33 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-05-09 19:47:33 +0000 |
| commit | e312c345ba946b59dcd228d1e4d382b51aa37e9d (patch) | |
| tree | 4291cf591ca52682a00bc72341dc1d626058c6d0 /src/xml/repr-io.cpp | |
| parent | Reset code to reaply (diff) | |
| download | inkscape-e312c345ba946b59dcd228d1e4d382b51aa37e9d.tar.gz inkscape-e312c345ba946b59dcd228d1e4d382b51aa37e9d.zip | |
Apply fixed
Diffstat (limited to 'src/xml/repr-io.cpp')
| -rw-r--r-- | src/xml/repr-io.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp index 2ff9d4776..4873fd4e9 100644 --- a/src/xml/repr-io.cpp +++ b/src/xml/repr-io.cpp @@ -873,6 +873,9 @@ static void sp_repr_write_stream_root_element(Node *repr, Writer &out, // Sort attributes in a canonical order (helps with "diffing" SVG files). bool sort = prefs->getBool("/options/svgoutput/sort_attributes"); + if (sort) { + sort = !prefs->getBool("/options/svgoutput/disable_optimizations"); + } if (sort) sp_attribute_sort_tree( repr ); Glib::QueryQuark xml_prefix=g_quark_from_static_string("xml"); |
