]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2456 : Fatal error when remove part
authormpv <mpv@opencascade.com>
Tue, 22 May 2018 12:49:42 +0000 (15:49 +0300)
committermpv <mpv@opencascade.com>
Tue, 22 May 2018 12:49:42 +0000 (15:49 +0300)
src/XGUI/XGUI_DataModel.cpp

index df96b18263b03743221bc073649ff0897d12a64a..2f92a30f22ced17f0157ee800181c593615f0383 100644 (file)
@@ -223,8 +223,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& theMess
         int aRow = aRootDoc->size(aGroup, true);
         if (aGroup == aRootType) {
           // Process root folder
-          removeRow(aRow + aNbFolders);
-          rebuildBranch(aNbFolders, aRow);
+          // remove optimization due to the issue #2456
+          //removeRow(aRow + aNbFolders);
+          //rebuildBranch(aNbFolders, aRow);
+          rebuildDataTree();
         } else if (aGroup == ModelAPI_Folder::group()) {
           rebuildDataTree();
         } else {