Skip to content

Commit

Permalink
Prevent crash in case of invalid geometries
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 14, 2013
1 parent 08fc298 commit 6370153
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsgeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6370153

Please sign in to comment.