Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refresh menu size after chnges in preferences
[modules/shaper.git]
/
src
/
SketchSolver
/
SketchSolver_Constraint.cpp
diff --git
a/src/SketchSolver/SketchSolver_Constraint.cpp
b/src/SketchSolver/SketchSolver_Constraint.cpp
index f831c170b530197631577a77e3955334bff83615..e44e1390b8b17e078077cd03cf0297fc827c3d23 100644
(file)
--- a/
src/SketchSolver/SketchSolver_Constraint.cpp
+++ b/
src/SketchSolver/SketchSolver_Constraint.cpp
@@
-81,6
+81,7
@@
const int& SketchSolver_Constraint::getType(boost::shared_ptr<SketchPlugin_Const
{
boost::shared_ptr<ModelAPI_Attribute> anAttr =
theConstraint->data()->attribute(SketchPlugin_Constraint::ATTRIBUTE(indAttr));
+ if (!anAttr) continue;
switch (typeOfAttribute(anAttr))
{
case POINT2D: // the attribute is a 2D point