diff options
| author | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-06-13 06:48:38 +0000 |
|---|---|---|
| committer | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-06-13 06:48:38 +0000 |
| commit | 2d53e70130350c9ab6cdfc407f5ca18c1fe14839 (patch) | |
| tree | 8f9927640a4715eae064ae635aca2a9e41e6c743 /src/xml/repr-io.cpp | |
| parent | Delete selector from style dialog (not from repr yet) (diff) | |
| parent | Fix a helper path data (diff) | |
| download | inkscape-2d53e70130350c9ab6cdfc407f5ca18c1fe14839.tar.gz inkscape-2d53e70130350c9ab6cdfc407f5ca18c1fe14839.zip | |
Merge changes from trunk
(bzr r14949.1.13)
Diffstat (limited to 'src/xml/repr-io.cpp')
| -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; |
