diff options
Diffstat (limited to 'src/display/curve.cpp')
| -rw-r--r-- | src/display/curve.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp index 211eaaa53..33578236f 100644 --- a/src/display/curve.cpp +++ b/src/display/curve.cpp @@ -324,16 +324,15 @@ SPCurve::is_closed() const { if (is_empty()) { return false; - } else { - bool closed = true; - for (Geom::PathVector::const_iterator it = _pathv.begin(); it != _pathv.end(); ++it) { - if ( ! it->closed() ) { - closed = false; - break; - } + } + + for (Geom::PathVector::const_iterator it = _pathv.begin(); it != _pathv.end(); ++it) { + if ( ! it->closed() ) { + return false; } - return closed; } + + return true; } /** @@ -344,9 +343,12 @@ SPCurve::is_equal(SPCurve * other) const { if(other == nullptr) { return false; - } else if(_pathv == other->get_pathvector()){ + } + + if(_pathv == other->get_pathvector()){ return true; } + return false; } |
