Skip to content

Commit a9b5429

Browse files
author
wonder
committed
ported fix for #1605 from trunk
git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@10449 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5810a22 commit a9b5429

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/core/qgsgeometry.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ static GEOSGeometry *createGeosLineString( const QgsPolyline& polyline )
310310
static GEOSGeometry *createGeosLinearRing( const QgsPolyline& polyline )
311311
{
312312
GEOSCoordSequence *coord = 0;
313+
314+
if (polyline.count() == 0)
315+
return 0;
313316

314317
try
315318
{

0 commit comments

Comments
 (0)