From: buliabyak Date: Sat, 5 Jul 2008 00:55:51 +0000 (+0000) Subject: another fix for parallel knotholder and nodepath X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9e39532ef9bf33408e4a364bbf65e39082577ad1;p=inkscape.git another fix for parallel knotholder and nodepath --- diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index 6b488af82..91909d850 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -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; }