]> git.tokkee.org Git - inkscape.git/commitdiff

Code

comments explaining namespace mapping for the broken sodipodi namespace
authormental <mental@users.sourceforge.net>
Mon, 8 May 2006 17:18:19 +0000 (17:18 +0000)
committermental <mental@users.sourceforge.net>
Mon, 8 May 2006 17:18:19 +0000 (17:18 +0000)
ChangeLog
src/xml/repr-util.cpp

index bba684187b8e4a6b17c8d4315b15cbca5c69698a..49f2ee0bad56b7c92883dd7506a317223725b007 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-05-08  MenTaLguY  <mental@rydia.net>
+
+       * src/xml/repr-util.cpp:
+       
+         comments explaining namespace mapping for the broken sodipodi namespace
+
 2006-05-08  Carl Hetherington  <inkscape@carlh.net>
 
        * src/seltrans.cpp, src/snap.cpp, src/snap.h: fix ctrl-scaling
index bc39710349228cd7e1128a31ebf7abe2ce557f14..3a6b9aee45e7c3b192388f45d0ac0611a4542966 100644 (file)
@@ -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;