Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d12fca7
)
Fix a bug of tree with ExtrusionCut operation launched from a script
author
vsv
<vsv@opencascade.com>
Wed, 21 Nov 2018 12:13:13 +0000
(15:13 +0300)
committer
vsv
<vsv@opencascade.com>
Wed, 21 Nov 2018 12:13:26 +0000
(15:13 +0300)
src/XGUI/XGUI_DataModel.cpp
patch
|
blob
|
history
diff --git
a/src/XGUI/XGUI_DataModel.cpp
b/src/XGUI/XGUI_DataModel.cpp
index 95c80678b3bbe3b9597dd6ba0a167b2152b086f7..4980dd1984693bd1441f7e6f2944a5bc91f2eaa9 100644
(file)
--- a/
src/XGUI/XGUI_DataModel.cpp
+++ b/
src/XGUI/XGUI_DataModel.cpp
@@
-142,7
+142,10
@@
void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& theMess
foreach(ObjectPtr aObj, aCreated) {
ModuleBase_ITreeNode* aNode = myRoot->subNode(aObj);
if (aNode) {
- aNode->update();
+ if (aNode->parent())
+ aNode->parent()->update();
+ else
+ aNode->update();
rebuildDataTree();
QModelIndex aFirstIdx = getIndex(aNode, 0);
QModelIndex aLastIdx = getIndex(aNode, 2);