From 674f054173101e0a53c9e317cb5d0d4bf121421b Mon Sep 17 00:00:00 2001 From: mental Date: Mon, 8 May 2006 17:18:19 +0000 Subject: [PATCH] comments explaining namespace mapping for the broken sodipodi namespace --- ChangeLog | 6 ++++++ src/xml/repr-util.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index bba684187..49f2ee0ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-08 MenTaLguY + + * src/xml/repr-util.cpp: + + comments explaining namespace mapping for the broken sodipodi namespace + 2006-05-08 Carl Hetherington * src/seltrans.cpp, src/snap.cpp, src/snap.h: fix ctrl-scaling 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; -- 2.39.5