From: azv Date: Tue, 30 Aug 2016 15:36:09 +0000 (+0300) Subject: Crash when selecting Fixed constraint X-Git-Tag: V_2.5.0~106 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=020413bb0e0379dd5d0202092d26325ab577eb94;p=modules%2Fshaper.git Crash when selecting Fixed constraint --- diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index 5867d6b94..3a8f8ea86 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -733,10 +733,11 @@ void SketchSolver_Manager::degreesOfFreedom() aPoints.insert(aRefAttr->attr()); } else { FeaturePtr anAttr = ModelAPI_Feature::feature(aRefAttr->object()); - if (anAttr) + if (anAttr) { aDoF -= aDoFDelta[anAttr->getKind()]; - std::list aPtAttrs = anAttr->data()->attributes(GeomDataAPI_Point2D::typeId()); - aPoints.insert(aPtAttrs.begin(), aPtAttrs.end()); + std::list aPtAttrs = anAttr->data()->attributes(GeomDataAPI_Point2D::typeId()); + aPoints.insert(aPtAttrs.begin(), aPtAttrs.end()); + } } // Check whether feature's points are already coincident with fixed points.