Skip to content

Commit dcec81f

Browse files
author
timlinux
committed
Fix build error due to not returning bool
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8362 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7500ab6 commit dcec81f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsgeometry.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1445,8 +1445,8 @@ bool QgsGeometry::deleteVertexAt(int atVertex)
14451445
int* nPoints = (int*)ptr;
14461446
if((*nPoints) < 3 || vertexnr > (*nPoints)-1 || vertexnr < 0) //line needs at least 2 vertices
14471447
{
1448-
delete newbuffer;
1449-
return;
1448+
delete newbuffer;
1449+
return false;
14501450
}
14511451
int newNPoints = (*nPoints)-1; //new number of points
14521452
memcpy(newBufferPtr, &newNPoints, sizeof(int));

0 commit comments

Comments
 (0)