Skip to content

Commit 6f14abe

Browse files

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/core/qgsgeometry.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ static GEOSGeometry *createGeosLineString( const QgsPolyline& polyline )
312312
static GEOSGeometry *createGeosLinearRing( const QgsPolyline& polyline )
313313
{
314314
GEOSCoordSequence *coord = 0;
315+
316+
if (polyline.count() == 0)
317+
return 0;
315318

316319
try
317320
{

0 commit comments

Comments
 (0)
Please sign in to comment.