Skip to content
Permalink
Browse files

Fix out of bounds array access if nextVertex is called on empty QgsGe…

…ometryCollectionV2
  • Loading branch information
manisandro committed Mar 5, 2016
1 parent 2eb8243 commit 4c0e78a22dba81d9a1450620ade8ab321fc4d7d7
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/geometry/qgsgeometrycollectionv2.cpp
@@ -374,6 +374,10 @@ bool QgsGeometryCollectionV2::nextVertex( QgsVertexId& id, QgsPointV2& vertex )
id.ring = -1;
id.vertex = -1;
}
if ( mGeometries.isEmpty() )
{
return false;
}

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

0 comments on commit 4c0e78a

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