]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Correction for bug IPAL12631.
authorskl <skl@opencascade.com>
Thu, 27 Jul 2006 11:16:54 +0000 (11:16 +0000)
committerskl <skl@opencascade.com>
Thu, 27 Jul 2006 11:16:54 +0000 (11:16 +0000)
src/SMESHGUI/SMESHGUI_FilterDlg.cxx

index 2f5f92d14b42dac74994f8c30c580de3f0cc45bd..b4b23b38117bf8b261d692ee7906f53fe1d615fa 100755 (executable)
@@ -2289,9 +2289,11 @@ void SMESHGUI_FilterDlg::insertFilterInViewer()
          myFilter[ myTable->GetType() ]->GetPredicate()->_is_nil() ||
          !mySetInViewer->isChecked()) {
       SMESH::RemoveFilter(getFilterId(anEntType), aSelector);
-    } else {
+    }
+    else {
       Handle(SMESHGUI_PredicateFilter) aFilter = new SMESHGUI_PredicateFilter();
       aFilter->SetPredicate(myFilter[ myTable->GetType() ]->GetPredicate());
+      SMESH::RemoveFilter(getFilterId(anEntType), aSelector); //skl for IPAL12631
       SMESH::SetFilter(aFilter, aSelector);
     }
   }