summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c68bdfa)
raw | patch | inline | side by side (parent: c68bdfa)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 5 Jul 2008 00:52:25 +0000 (00:52 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 5 Jul 2008 00:52:25 +0000 (00:52 +0000) |
src/shape-editor.cpp | patch | blob | history |
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index 4b71184e4c5843007107af130e1d7b3888a5d569..6b488af827d7d678c3325bda2ef73481cfa2f724 100644 (file)
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
}
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 () {