Skip to content

Commit

Permalink
ported fix for #1605 from trunk
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@10449 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 31, 2009
1 parent 5810a22 commit a9b5429
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsgeometry.cpp
Expand Up @@ -310,6 +310,9 @@ static GEOSGeometry *createGeosLineString( const QgsPolyline& polyline )
static GEOSGeometry *createGeosLinearRing( const QgsPolyline& polyline )
{
GEOSCoordSequence *coord = 0;

if (polyline.count() == 0)
return 0;

try
{
Expand Down

0 comments on commit a9b5429

Please sign in to comment.