Skip to content

Commit 7ecaa9b

Browse files
author
wonder
committed
Fixed #1605.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10448 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 11658f6 commit 7ecaa9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsgeometry.cpp

+3
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)