+ issue #0001474: crash selecting constraint

This commit is contained in:
wmayer
2014-03-15 11:32:03 +01:00
parent c2dff85076
commit 8df3dcea20

View File

@@ -1868,6 +1868,9 @@ int Sketch::setDatum(int constrId, double value)
int Sketch::getPointId(int geoId, PointPos pos) const
{
// do a range check first
if (geoId < 0 || geoId >= Geoms.size())
return -1;
switch (pos) {
case start:
return Geoms[geoId].startPointId;