From: azv Date: Fri, 25 Jul 2014 07:41:27 +0000 (+0400) Subject: Regression in coincidence constraint X-Git-Tag: V_0.4.4~149 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=578f38de3141dd39875ec6f0f32eec57b994c59f;p=modules%2Fshaper.git Regression in coincidence constraint --- diff --git a/src/SketchSolver/SketchSolver_Constraint.cpp b/src/SketchSolver/SketchSolver_Constraint.cpp index f831c170b..e44e1390b 100644 --- a/src/SketchSolver/SketchSolver_Constraint.cpp +++ b/src/SketchSolver/SketchSolver_Constraint.cpp @@ -81,6 +81,7 @@ const int& SketchSolver_Constraint::getType(boost::shared_ptr anAttr = theConstraint->data()->attribute(SketchPlugin_Constraint::ATTRIBUTE(indAttr)); + if (!anAttr) continue; switch (typeOfAttribute(anAttr)) { case POINT2D: // the attribute is a 2D point