summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-07-05 00:55:51 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-07-05 00:55:51 +0000
commit2fb2e26d997f7cdd1d40813f3c047a3124b63cda (patch)
tree3d63d8652509000600990dde2e54e9952202ade7 /src
parentfix crash triggered by having both knotholder and nodepath at the same time (diff)
downloadinkscape-2fb2e26d997f7cdd1d40813f3c047a3124b63cda.tar.gz
inkscape-2fb2e26d997f7cdd1d40813f3c047a3124b63cda.zip
another fix for parallel knotholder and nodepath
(bzr r6162)
Diffstat (limited to 'src')
-rw-r--r--src/shape-editor.cpp5
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;
}