X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI.cxx;h=34c82ee213ee397bdc8dea3f004e8e669432c7c2;hb=83f19818fce494a77ddf10b70493abdd9f73e4e0;hp=bf4ae7f7639f1347e013a15e41f1664fe4e0d69a;hpb=d9c93f6f324a4610f44106b0df42a6e3875bfaf7;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index bf4ae7f76..34c82ee21 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -730,6 +730,8 @@ namespace{ SALOME_Selection *Sel = SALOME_Selection::Selection(anActiveStudy->getSelection()); SALOME_ListIteratorOfListIO It(Sel->StoredIObjects()); + + aStudyBuilder->NewCommand(); // There is a transaction for(; It.More(); It.Next()){ Handle(SALOME_InteractiveObject) IObject = It.Value(); if(IObject->hasEntry()){ @@ -737,7 +739,7 @@ namespace{ /* Erase child graphical objects */ SALOMEDS::ChildIterator_var it = aStudy->NewChildIterator(SO); - for(; it->More(); it->Next()){ + for(it->InitEx(true); it->More(); it->Next()){ SALOMEDS::SObject_var CSO = it->Value(); if(CSO->FindAttribute(anAttr, "AttributeIOR")){ anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr); @@ -785,6 +787,7 @@ namespace{ } /* IObject->hasEntry() */ } /* more/next */ + aStudyBuilder->CommitCommand(); /* Clear any previous selection */ Sel->ClearIObjects(); @@ -1274,6 +1277,7 @@ bool SMESHGUI::OnGUIEvent(int theCommandID, QAD_Desktop * parent) } CORBA::Long anId = aStudy->StudyId(); TVisualObjPtr aVisualObj = SMESH::GetVisualObj(anId,IObject->getEntry()); + cout<<"myAutomaticUpdate - "<Update(); SMESH_Actor* anActor = SMESH::FindActorByEntry(IObject->getEntry());