Sketcher: Fix deletion of coincident constraints on the root point

This commit is contained in:
logari81
2012-12-08 23:48:35 +01:00
parent 9ca1206cfe
commit 4a680d12b7
2 changed files with 7 additions and 1 deletions

View File

@@ -410,7 +410,11 @@ int SketchObject::delConstraintOnPoint(int VertexId, bool onlyCoincident)
{
int GeoId;
PointPos PosId;
getGeoVertexIndex(VertexId, GeoId, PosId);
if (VertexId == -1) { // RootPoint
GeoId = -1;
PosId = start;
} else
getGeoVertexIndex(VertexId, GeoId, PosId);
return delConstraintOnPoint(GeoId, PosId, onlyCoincident);
}