X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_DataModel.cpp;h=426779d2716290cdc938c80af61a7e325fe7fd81;hb=59a007784d1e103bcb352c515eb6feafa170f1ff;hp=009da57c60a8bd076f6b23b7bd6e2feb63d10503;hpb=6c7ef4734f78a6beb0d1078f860587e21587cb23;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 009da57c6..426779d27 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -259,7 +259,7 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess aParent = createIndex(folderId(aGroup, aDoc.get()), 0, aDoc.get()); } int aChildNb = rowCount(aParent); - rebuildBranch(aStartId, aChildNb - aStartId); + rebuildBranch(aStartId, aChildNb - aStartId, aParent); } else if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_DOCUMENT_CHANGED)) { DocumentPtr aDoc = ModelAPI_Session::get()->activeDocument(); if (aDoc != aRootDoc) {