Skip to content
Permalink
Browse files

Prevent crash in case of invalid geometries

  • Loading branch information
mhugent committed Jun 14, 2013
1 parent 08fc298 commit 6370153e81bba76997ec1db5c1296f71b284c256
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/qgsgeometry.cpp
@@ -353,6 +353,10 @@ static GEOSGeometry *createGeosLinearRing( const QgsPolyline& polyline )

static GEOSGeometry *createGeosPolygon( const QVector<GEOSGeometry*> &rings )
{
if ( rings.size() < 1 )
{
return GEOSGeom_createEmptyPolygon();
}
GEOSGeometry *shell = rings[0];
GEOSGeometry **holes = NULL;

0 comments on commit 6370153

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