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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Apr 17 08:59:33 EDT 2008


Author: timlinux
Date: 2008-04-17 08:59:33 -0400 (Thu, 17 Apr 2008)
New Revision: 8362

Modified:
   trunk/qgis/src/core/qgsgeometry.cpp
Log:
Fix build error due to not returning bool


Modified: trunk/qgis/src/core/qgsgeometry.cpp
===================================================================
--- trunk/qgis/src/core/qgsgeometry.cpp	2008-04-17 12:35:32 UTC (rev 8361)
+++ trunk/qgis/src/core/qgsgeometry.cpp	2008-04-17 12:59:33 UTC (rev 8362)
@@ -1445,8 +1445,8 @@
         int* nPoints = (int*)ptr;
         if((*nPoints) < 3 || vertexnr > (*nPoints)-1 || vertexnr < 0) //line needs at least 2 vertices
         {
-	  delete newbuffer;
-          return;
+          delete newbuffer;
+          return false;
         }
         int newNPoints = (*nPoints)-1; //new number of points
         memcpy(newBufferPtr, &newNPoints, sizeof(int));



More information about the QGIS-commit mailing list