diff options
Diffstat (limited to '')
| -rw-r--r-- | src/shape-editor.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index 4b71184e4..6b488af82 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -96,12 +96,8 @@ bool ShapeEditor::has_knotholder () { } bool ShapeEditor::has_local_change () { - if (this->nodepath) - return (this->nodepath->local_change != 0); - else if (this->knotholder) - return (this->knotholder->local_change != 0); - else - return false; + return ((this->nodepath && this->nodepath->local_change) || + (this->knotholder && this->knotholder->local_change != 0)); } void ShapeEditor::decrement_local_change () { |
