From 1aa8e2076cff1df5b634cdfa3ec97839096da5d5 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 30 Mar 2017 13:33:52 +0300 Subject: [PATCH] Issue #2027 Sketcher Trim Feature: preselection in reentrant operation --- src/PartSet/PartSet_SketcherReentrantMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2