From: nds Date: Thu, 30 Mar 2017 10:33:52 +0000 (+0300) Subject: Issue #2027 Sketcher Trim Feature: preselection in reentrant operation X-Git-Tag: V_2.7.0~126 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1aa8e2076cff1df5b634cdfa3ec97839096da5d5;p=modules%2Fshaper.git Issue #2027 Sketcher Trim Feature: preselection in reentrant operation --- diff --git a/src/PartSet/PartSet_SketcherReentrantMgr.cpp b/src/PartSet/PartSet_SketcherReentrantMgr.cpp index 00b8f3f25..dc1ec3678 100644 --- a/src/PartSet/PartSet_SketcherReentrantMgr.cpp +++ b/src/PartSet/PartSet_SketcherReentrantMgr.cpp @@ -246,7 +246,7 @@ bool PartSet_SketcherReentrantMgr::processMouseReleased(ModuleBase_IViewWindow* std::shared_ptr aSelectedPrs; if (!aPreSelected.empty()) aSelectedPrs = aPreSelected.front(); - if (!aSelectedPrs.get() && aSelectedPrs->object().get() + if (aSelectedPrs.get() && aSelectedPrs->object().get() && !aSelectedPrs->object()->data()->isValid()) { // the selected object was removed diring restart, e.g. presentable macro feature // there are created objects to replace the object depending on created feature kind