Skip to content

Commit

Permalink
Fix build error due to not returning bool
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8362 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Apr 17, 2008
1 parent 1b0c716 commit 6817800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsgeometry.cpp
Expand Up @@ -1445,8 +1445,8 @@ bool QgsGeometry::deleteVertexAt(int atVertex)
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));
Expand Down

0 comments on commit 6817800

Please sign in to comment.