Skip to content
Permalink
Browse files

Minimal performance improvement

  • Loading branch information
m-kuhn committed Jun 26, 2017
1 parent a3f14df commit fd8158bca033fb8b31cfe5be71f5ddc68339d692
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgscurve.cpp
@@ -34,7 +34,7 @@ bool QgsCurve::isClosed() const

bool closed = qgsDoubleNear( start.x(), end.x(), 1E-8 ) &&
qgsDoubleNear( start.y(), end.y(), 1E-8 );
if ( is3D() )
if ( is3D() && closed )
closed &= qgsDoubleNear( start.z(), end.z(), 1E-8 ) || ( qIsNaN( start.z() ) && qIsNaN( end.z() ) );
return closed;
}

0 comments on commit fd8158b

Please sign in to comment.
You can’t perform that action at this time.