From: azv Date: Mon, 9 Oct 2017 13:29:39 +0000 (+0300) Subject: Protect constraint without flyout point of setting such attribute by SketchSolver_Manager X-Git-Tag: V_2.9.0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb1563f61335ae3ad1f0242792d28912d6e1cdce;p=modules%2Fshaper.git Protect constraint without flyout point of setting such attribute by SketchSolver_Manager --- diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index 03a9e38c1..8f30aa70d 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -248,8 +248,11 @@ bool SketchSolver_Manager::moveFeature( { std::shared_ptr aPntAttr = std::dynamic_pointer_cast (aConstraint->attribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT())); - aPntAttr->setValue(theTo); - Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED)); + if (aPntAttr) + { + aPntAttr->setValue(theTo); + Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED)); + } return true; }