Code

Fix new path update preference.
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Sun, 7 Feb 2010 23:23:09 +0000 (00:23 +0100)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Sun, 7 Feb 2010 23:23:09 +0000 (00:23 +0100)
src/ui/tool/path-manipulator.cpp

index b1a86dd7766f12059c46c38b4de8645d59ff7ee3..3a6b15f375d363bb170ec250c1fadffaed179426 100644 (file)
@@ -170,6 +170,11 @@ void PathManipulator::update()
 /** Store the changes to the path in XML. */
 void PathManipulator::writeXML()
 {
+    if (!_live_outline)
+        _updateOutline();
+    if (!_live_objects)
+        _setGeometry();
+
     if (!_path) return;
     _observer->block();
     if (!empty()) {
@@ -184,13 +189,6 @@ void PathManipulator::writeXML()
         _path = 0;
     }
     _observer->unblock();
-
-    if (!empty()) {
-        if (!_live_outline)
-            _updateOutline();
-        if (!_live_objects)
-            _setGeometry();
-    }
 }
 
 /** Remove all nodes from the path. */