summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f7979e2)
raw | patch | inline | side by side (parent: f7979e2)
author | mental <mental@users.sourceforge.net> | |
Thu, 3 Aug 2006 22:51:36 +0000 (22:51 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Thu, 3 Aug 2006 22:51:36 +0000 (22:51 +0000) |
src/xml/repr-util.cpp | patch | blob | history |
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp
index 3a6b9aee45e7c3b192388f45d0ac0611a4542966..83231e5da54586d686949ca60b97112382b84690 100644 (file)
--- a/src/xml/repr-util.cpp
+++ b/src/xml/repr-util.cpp
static void
sp_xml_ns_register_defaults()
{
- static SPXMLNs defaults[8];
+ static SPXMLNs defaults[9];
defaults[0].uri = g_quark_from_static_string(SP_SODIPODI_NS_URI);
defaults[0].prefix = g_quark_from_static_string("sodipodi");
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;
+ defaults[7].next = &defaults[8];
+
+ // "Duck prion"
+ // This URL became widespread due to a bug in versions <= 0.43
+
+ defaults[8].uri = g_quark_from_static_string("http://inkscape.sourceforge.net/DTD/s odipodi-0.dtd");
+ defaults[8].prefix = g_quark_from_static_string("sodipodi");
+ defaults[8].next = NULL;
namespaces = &defaults[0];
}