]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2027 Sketcher Trim Feature: preselection in reentrant operation
authornds <nds@opencascade.com>
Thu, 30 Mar 2017 10:33:52 +0000 (13:33 +0300)
committernds <nds@opencascade.com>
Thu, 30 Mar 2017 10:33:52 +0000 (13:33 +0300)
src/PartSet/PartSet_SketcherReentrantMgr.cpp

index 00b8f3f257cbada2d17a201fcea1cc2cc08ab2e0..dc1ec367868791b6d57a239eb45332d102b6ce57 100644 (file)
@@ -246,7 +246,7 @@ bool PartSet_SketcherReentrantMgr::processMouseReleased(ModuleBase_IViewWindow*
         std::shared_ptr<ModuleBase_ViewerPrs> 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