We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3f14df commit fd8158bCopy full SHA for fd8158b
src/core/geometry/qgscurve.cpp
@@ -34,7 +34,7 @@ bool QgsCurve::isClosed() const
34
35
bool closed = qgsDoubleNear( start.x(), end.x(), 1E-8 ) &&
36
qgsDoubleNear( start.y(), end.y(), 1E-8 );
37
- if ( is3D() )
+ if ( is3D() && closed )
38
closed &= qgsDoubleNear( start.z(), end.z(), 1E-8 ) || ( qIsNaN( start.z() ) && qIsNaN( end.z() ) );
39
return closed;
40
}
0 commit comments