Navigation Menu

Skip to content

Commit

Permalink
Minimal performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 26, 2017
1 parent a3f14df commit fd8158b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgscurve.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit fd8158b

Please sign in to comment.