+ issue #0001474: crash selecting constraint
This commit is contained in:
parent
599331ef11
commit
b7cb49c3e3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user