diff options
Diffstat (limited to 'src/shape-editor.cpp')
| -rw-r--r-- | src/shape-editor.cpp | 5 |
1 files 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; } |
