Fix invalid return from QgsCircularString::pointN with negative indices

This commit is contained in:
Nyall Dawson 2017-09-19 11:26:46 +10:00
parent e5b1c67594
commit 6205ca5ef7

View File

@ -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;
}