Skip to content
Permalink
Browse files

Fix crash in nextVertex with bad geometry collection part number

  • Loading branch information
nyalldawson committed Sep 25, 2017
1 parent 33ba9a8 commit 94b44855e77b1b0350fad1bf20481a5ad4818338
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/geometry/qgsgeometrycollection.cpp
@@ -414,6 +414,9 @@ bool QgsGeometryCollection::nextVertex( QgsVertexId &id, QgsPoint &vertex ) cons
return false;
}

if ( id.part >= mGeometries.count() )
return false;

QgsAbstractGeometry *geom = mGeometries.at( id.part );
if ( geom->nextVertex( id, vertex ) )
{

0 comments on commit 94b4485

Please sign in to comment.
You can’t perform that action at this time.