From 020413bb0e0379dd5d0202092d26325ab577eb94 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 30 Aug 2016 18:36:09 +0300 Subject: [PATCH] Crash when selecting Fixed constraint --- src/SketchSolver/SketchSolver_Manager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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. -- 2.39.2