Navigation Menu

Skip to content

Commit

Permalink
some fixes for previous commit
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5353 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 23, 2006
1 parent 56ad7fb commit a8a1c46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgsgeometry.cpp
Expand Up @@ -893,10 +893,12 @@ bool QgsGeometry::deleteVertexAt(QgsGeometryVertexIndex atVertex)
mGeometry = newbuffer;
mGeometrySize -= (2*sizeof(double));
mDirtyGeos = true;
return true;
}
else
{
delete[] newbuffer;
return false;
}
}

Expand Down Expand Up @@ -956,9 +958,6 @@ bool QgsGeometry::insertVertexBefore(double x, double y, QgsGeometryVertexIndex
break;
}
case QGis::WKBMultiLineString:
{
break;
}
case QGis::WKBPolygon:
{
int* nRings = (int*)ptr;
Expand Down Expand Up @@ -1013,6 +1012,7 @@ bool QgsGeometry::insertVertexBefore(double x, double y, QgsGeometryVertexIndex
delete mGeometry;
mGeometry = newbuffer;
mGeometrySize += 2*sizeof(double);
mDirtyGeos = true;
return true;
}
else
Expand Down

0 comments on commit a8a1c46

Please sign in to comment.