diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index 6b488af827d7d678c3325bda2ef73481cfa2f724..91909d8505fdae651ef80a5a552d3d7c4c972889 100644 (file)
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
}
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;
}