summaryrefslogtreecommitdiffstats
path: root/src/xml/repr-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/repr-util.cpp')
-rw-r--r--src/xml/repr-util.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp
index bc3971034..3a6b9aee4 100644
--- a/src/xml/repr-util.cpp
+++ b/src/xml/repr-util.cpp
@@ -179,6 +179,12 @@ sp_xml_ns_register_defaults()
defaults[6].prefix = g_quark_from_static_string("dc");
defaults[6].next = &defaults[7];
+ // Inkscape versions prior to 0.44 would write this namespace
+ // URI instead of the correct sodipodi namespace; by adding this
+ // entry to the table last (where it gets used for URI -> prefix
+ // lookups, but not prefix -> URI lookups), we effectively transfer
+ // elements in this namespace to the correct sodipodi namespace:
+
defaults[7].uri = g_quark_from_static_string(SP_BROKEN_SODIPODI_NS_URI);
defaults[7].prefix = g_quark_from_static_string("sodipodi");
defaults[7].next = NULL;