summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorStephen Silver <sasilver@yahoo.com>2008-07-09 09:28:49 +0000
committersasilver <sasilver@users.sourceforge.net>2008-07-09 09:28:49 +0000
commit487b7320deacd137b6a06efb0a5c8557b1fd0ff4 (patch)
tree00a107a8603fa943245f67529d68ce63938d08b2 /src/document.cpp
parentRemove use of obsolete sodipodi:docbase from Python scripts (see bug 246721). (diff)
downloadinkscape-487b7320deacd137b6a06efb0a5c8557b1fd0ff4.tar.gz
inkscape-487b7320deacd137b6a06efb0a5c8557b1fd0ff4.zip
Remove obsolete 'sodipodi:docbase' attribute when opening old Sodipodi/Inkscape files.
See bugs 168958 and 246721. (bzr r6246)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp
index af65d2d30..356fba577 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -306,6 +306,9 @@ sp_document_create(Inkscape::XML::Document *rdoc,
}
/* End of quick hack 3 */
+ /* Eliminate obsolete sodipodi:docbase, for privacy reasons */
+ rroot->setAttribute("sodipodi:docbase", NULL);
+
/* Eliminate any claim to adhere to a profile, as we don't try to */
rroot->setAttribute("baseProfile", NULL);