Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed #1605.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10448 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 31, 2009
1 parent 9d2bcc9 commit 6f14abe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsgeometry.cpp
Expand Up @@ -312,6 +312,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 6f14abe

Please sign in to comment.