diff options
| author | Adrian Boguszewski <adrbogus1@student.pg.gda.pl> | 2016-06-12 21:08:21 +0000 |
|---|---|---|
| committer | Adrian Boguszewski <adrbogus1@student.pg.gda.pl> | 2016-06-12 21:08:21 +0000 |
| commit | 4f3e8770859705cb80bb38ec57348677d57b7e36 (patch) | |
| tree | 9c1292a14973e689a0dc486ce5a3c7a1d395b821 /src/xml | |
| parent | Added return value to remove (diff) | |
| parent | Fix faulty comparison function. (diff) | |
| download | inkscape-4f3e8770859705cb80bb38ec57348677d57b7e36.tar.gz inkscape-4f3e8770859705cb80bb38ec57348677d57b7e36.zip | |
Replaced old selection containers
(bzr r14954.1.6)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/repr-io.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp index 4a6f59b43..6977bc1e2 100644 --- a/src/xml/repr-io.cpp +++ b/src/xml/repr-io.cpp @@ -34,6 +34,7 @@ #include "extension/extension.h" #include "attribute-rel-util.h" +#include "attribute-sort-util.h" #include "preferences.h" @@ -882,6 +883,10 @@ static void sp_repr_write_stream_root_element(Node *repr, Writer &out, bool clean = prefs->getBool("/options/svgoutput/check_on_writing"); 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"); + if (sort) sp_attribute_sort_tree( repr ); + Glib::QueryQuark xml_prefix=g_quark_from_static_string("xml"); NSMap ns_map; |
