]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for exception on deletion of a Part from PartSet when it is active
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 2 Sep 2016 13:35:24 +0000 (16:35 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 2 Sep 2016 13:35:38 +0000 (16:35 +0300)
src/XGUI/XGUI_DataModel.cpp

index 3d14d5108b9bdb4d713db9b95384deb904c3d20d..1296ae94df231c497b9aafd23ef24c855e5f131b 100644 (file)
@@ -149,8 +149,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& theMess
               }
             }
           }
-        } else
+        } else {
           rebuildDataTree();
+          break;
+        }
       }
     }
     // Deleted object event ***********************
@@ -230,6 +232,9 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& theMess
               break;
             }
           }
+        } else {
+          rebuildDataTree();
+          break;
         }
       }
     }