[QGIS Commit] r10448 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Mar 31 15:13:12 EDT 2009


Author: wonder
Date: 2009-03-31 15:13:12 -0400 (Tue, 31 Mar 2009)
New Revision: 10448

Modified:
   trunk/qgis/src/core/qgsgeometry.cpp
Log:
Fixed #1605.


Modified: trunk/qgis/src/core/qgsgeometry.cpp
===================================================================
--- trunk/qgis/src/core/qgsgeometry.cpp	2009-03-31 13:17:07 UTC (rev 10447)
+++ trunk/qgis/src/core/qgsgeometry.cpp	2009-03-31 19:13:12 UTC (rev 10448)
@@ -312,6 +312,9 @@
 static GEOSGeometry *createGeosLinearRing( const QgsPolyline& polyline )
 {
   GEOSCoordSequence *coord = 0;
+  
+  if (polyline.count() == 0)
+    return 0;
 
   try
   {



More information about the QGIS-commit mailing list