summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-05-08 17:18:19 +0000
committermental <mental@users.sourceforge.net>2006-05-08 17:18:19 +0000
commitc80a95666cc05fc978e5ed54530b3fa8c76984f9 (patch)
tree59af5e609ddd30a81709b7e5e2b472c10ad4c5ae /src/xml
parentAdded some comments. (diff)
downloadinkscape-c80a95666cc05fc978e5ed54530b3fa8c76984f9.tar.gz
inkscape-c80a95666cc05fc978e5ed54530b3fa8c76984f9.zip
comments explaining namespace mapping for the broken sodipodi namespace
(bzr r772)
Diffstat (limited to 'src/xml')
-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;