X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_VTKUtils.cxx;h=89cebc3c456091b5c434993698eb8579379e459e;hp=8bd6cdce93832a9f149e319db1cdd6a6c52dabd4;hb=83f19818fce494a77ddf10b70493abdd9f73e4e0;hpb=6bbcf82682e142e23e653f6eb2073321c3c2121f diff --git a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx index 8bd6cdce9..89cebc3c4 100644 --- a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx @@ -244,6 +244,17 @@ namespace SMESH{ void RemoveActor(QAD_StudyFrame *theStudyFrame, SMESH_Actor* theActor){ if(VTKViewer_ViewFrame* aViewFrame = GetVtkViewFrame(theStudyFrame)){ aViewFrame->RemoveActor(theActor); + if(theActor->hasIO()){ + Handle(SALOME_InteractiveObject) anIO = theActor->getIO(); + if(anIO->hasEntry()){ + std::string anEntry = anIO->getEntry(); + QAD_Study* aStudy = theStudyFrame->getStudy(); + int aStudyId = aStudy->getStudyId(); + TVisualObjCont::key_type aKey(aStudyId,anEntry); + VISUAL_OBJ_CONT.erase(aKey); + } + } + theActor->Delete(); aViewFrame->Repaint(); } }