summaryrefslogtreecommitdiffstats
path: root/src/sp-root.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-06-08 09:16:29 +0000
committertavmjong-free <tavmjong@free.fr>2016-06-08 09:16:29 +0000
commit5401a129da2f319316221727fef5c516c3a72906 (patch)
treea3ffe6d401049f13799590159ea3a3e837e19b8b /src/sp-root.cpp
parentReally remove last of svg_units. (diff)
downloadinkscape-5401a129da2f319316221727fef5c516c3a72906.tar.gz
inkscape-5401a129da2f319316221727fef5c516c3a72906.zip
Only update inkscape.version on successful file write.
(bzr r14965)
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);