Salome HOME
PAL6938
authorsan <san@opencascade.com>
Thu, 3 Feb 2005 08:34:23 +0000 (08:34 +0000)
committersan <san@opencascade.com>
Thu, 3 Feb 2005 08:34:23 +0000 (08:34 +0000)
src/SMESHGUI/SMESHGUI_GroupDlg.cxx

index a83f360..457cfec 100644 (file)
@@ -1322,14 +1322,9 @@ void SMESHGUI_GroupDlg::onClose()
 {
   QAD_StudyFrame* aStudyFrame = mySMESHGUI->GetActiveStudy()->getActiveStudyFrame();
   if (aStudyFrame->getTypeView() == VIEW_VTK) {
+    SMESH::RemoveFilters(); // PAL6938 -- clean all mesh entity filters
     SMESH::SetPointRepresentation(false);
     SMESH::SetPickable();
-
-    // remove filters from viewer
-    if(VTKViewer_InteractorStyleSALOME* aStyle = SMESH::GetInteractorStyle()){
-      SMESH::RemoveFilter(SMESHGUI_EdgeFilter,aStyle);
-      SMESH::RemoveFilter(SMESHGUI_FaceFilter,aStyle);
-    }
   }
   
   mySelection->ClearIObjects();