Code

another fix for parallel knotholder and nodepath
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 5 Jul 2008 00:55:51 +0000 (00:55 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 5 Jul 2008 00:55:51 +0000 (00:55 +0000)
src/shape-editor.cpp

index 6b488af827d7d678c3325bda2ef73481cfa2f724..91909d8505fdae651ef80a5a552d3d7c4c972889 100644 (file)
@@ -101,9 +101,8 @@ bool ShapeEditor::has_local_change () {
 }
 
 void ShapeEditor::decrement_local_change () {
-    if (this->nodepath) {
-        if (this->nodepath->local_change > 0)
-            this->nodepath->local_change--;
+    if (this->nodepath && this->nodepath->local_change > 0) {
+        this->nodepath->local_change--;
     } else if (this->knotholder) {
         this->knotholder->local_change = FALSE;
     }