]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix regression related to issue #18994.
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Fri, 3 Apr 2020 19:21:33 +0000 (22:21 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Fri, 3 Apr 2020 19:21:33 +0000 (22:21 +0300)
src/PartSetPlugin/PartSetPlugin_Remove.cpp

index a17bfee5ebb137265ba6b503da1c4e8d34c36a35..d1b75d1a094b5c1b1c735f9cb2d1a0be5fcc91a8 100644 (file)
@@ -47,7 +47,8 @@ void PartSetPlugin_Remove::execute()
       aRoot->refsToFeature(aFeature, aRefFeatures);
       if (aRefFeatures.empty()) {
         // before removing the part make the partSet active document
-        aPManager->setActiveDocument(aRoot);
+        if (aThisDoc == aPManager->activeDocument())
+          aPManager->setActiveDocument(aRoot);
         aRoot->removeFeature(aFeature);
         // the redisplay signal should be flushed in order to erase the feature presentation
         // in the viewer after removeFeature from the document