From: mpv Date: Tue, 22 May 2018 12:49:42 +0000 (+0300) Subject: Fix for the issue #2456 : Fatal error when remove part X-Git-Tag: V8_5_0rc2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=57af37f78b56b87216f62d45537e0ad3e7197cf3;p=modules%2Fshaper.git Fix for the issue #2456 : Fatal error when remove part --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index df96b1826..2f92a30f2 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -223,8 +223,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& 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 {