Skip to content

Commit

Permalink
Fixed #1605.
Browse files Browse the repository at this point in the history
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
Original file line number Diff line number Diff line change
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.