mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix invalid return from QgsCircularString::pointN with negative indices
This commit is contained in:
parent
e5b1c67594
commit
6205ca5ef7
@ -755,7 +755,7 @@ double QgsCircularString::closestSegment( const QgsPoint &pt, QgsPoint &segmentP
|
||||
|
||||
bool QgsCircularString::pointAt( int node, QgsPoint &point, QgsVertexId::VertexType &type ) const
|
||||
{
|
||||
if ( node >= numPoints() )
|
||||
if ( node < 0 || node >= numPoints() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user