[QGIS Commit] r10449 - branches/Version-1_0/src/core

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


Author: wonder
Date: 2009-03-31 15:31:25 -0400 (Tue, 31 Mar 2009)
New Revision: 10449

Modified:
   branches/Version-1_0/src/core/qgsgeometry.cpp
Log:
ported fix for #1605 from trunk


Modified: branches/Version-1_0/src/core/qgsgeometry.cpp
===================================================================
--- branches/Version-1_0/src/core/qgsgeometry.cpp	2009-03-31 19:13:12 UTC (rev 10448)
+++ branches/Version-1_0/src/core/qgsgeometry.cpp	2009-03-31 19:31:25 UTC (rev 10449)
@@ -310,6 +310,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