summaryrefslogtreecommitdiffstats
path: root/src/sp-root.cpp
diff options
context:
space:
mode:
authorMichael Soegtrop <MSoegtrop@yahoo.de>2016-06-12 10:52:33 +0000
committerMichael Soegtrop <MSoegtrop@yahoo.de>2016-06-12 10:52:33 +0000
commit013ba80c5b0115dbb0f6da01e1f42806a4037eb8 (patch)
treefe8d764a8e808c2084df8ace149d472109f3ae25 /src/sp-root.cpp
parentFixed Bool LPE review issues (diff)
parentOptionally sort attributes and properties into a canonical order. (diff)
downloadinkscape-013ba80c5b0115dbb0f6da01e1f42806a4037eb8.tar.gz
inkscape-013ba80c5b0115dbb0f6da01e1f42806a4037eb8.zip
updated to latest trunk
(bzr r14876.2.3)
Diffstat (limited to 'src/sp-root.cpp')
-rw-r--r--src/sp-root.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sp-root.cpp b/src/sp-root.cpp
index 8bedec0a5..98eae2159 100644
--- a/src/sp-root.cpp
+++ b/src/sp-root.cpp
@@ -313,9 +313,11 @@ Inkscape::XML::Node *SPRoot::write(Inkscape::XML::Document *xml_doc, Inkscape::X
repr = xml_doc->createElement("svg:svg");
}
- if (flags & SP_OBJECT_WRITE_EXT) {
- repr->setAttribute("inkscape:version", Inkscape::version_string);
- }
+ /* Only update version string on successful write to file. This is handled by 'file_save()'.
+ * if (flags & SP_OBJECT_WRITE_EXT) {
+ * repr->setAttribute("inkscape:version", Inkscape::version_string);
+ * }
+ */
if (!repr->attribute("version")) {
gchar *myversion = sp_version_to_string(this->version.svg);