From c80a95666cc05fc978e5ed54530b3fa8c76984f9 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Mon, 8 May 2006 17:18:19 +0000 Subject: comments explaining namespace mapping for the broken sodipodi namespace (bzr r772) --- src/xml/repr-util.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/xml/repr-util.cpp') 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; -- cgit v1.2.3