+ issue #0001474: crash selecting constraint

This commit is contained in:
wmayer 2014-03-15 11:32:03 +01:00
parent 599331ef11
commit b7cb49c3e3

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;