Skip to content

Commit

Permalink
+ issue #1474: crash selecting constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 15, 2014
1 parent 599331e commit b7cb49c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Sketcher/App/Sketch.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b7cb49c

Please sign in to comment.