diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-07-05 00:55:51 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-07-05 00:55:51 +0000 |
| commit | 2fb2e26d997f7cdd1d40813f3c047a3124b63cda (patch) | |
| tree | 3d63d8652509000600990dde2e54e9952202ade7 /src/shape-editor.cpp | |
| parent | fix crash triggered by having both knotholder and nodepath at the same time (diff) | |
| download | inkscape-2fb2e26d997f7cdd1d40813f3c047a3124b63cda.tar.gz inkscape-2fb2e26d997f7cdd1d40813f3c047a3124b63cda.zip | |
another fix for parallel knotholder and nodepath
(bzr r6162)
Diffstat (limited to '')
| -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; } |
