mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Minimal performance improvement
This commit is contained in:
parent
a3f14df367
commit
fd8158bca0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user