From 9e39532ef9bf33408e4a364bbf65e39082577ad1 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 5 Jul 2008 00:55:51 +0000 Subject: [PATCH] another fix for parallel knotholder and nodepath --- src/shape-editor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.30.2