Code

Patch from codedread. Prevents rendering of title/desc/metadata elements in text...
[inkscape.git] / 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;
     }