]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix pb. with 'Belong to ...' filters creation
authorjfa <jfa@opencascade.com>
Thu, 15 Sep 2005 13:39:48 +0000 (13:39 +0000)
committerjfa <jfa@opencascade.com>
Thu, 15 Sep 2005 13:39:48 +0000 (13:39 +0000)
src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx

index 18eb314cfa29515cbc83de6ac503492554c34f40..c4ca04c3700328f0dc7709faa31141c1a512fa02 100644 (file)
@@ -848,6 +848,7 @@ void SMESHGUI_FilterLibraryDlg::enableMainButtons()
 SMESH::Filter_ptr SMESHGUI_FilterLibraryDlg::createFilter(const int theType)
 {
   int n = myTable->NumRows(theType);
+  n = 0;
 
   SMESH::Filter::Criteria_var aCriteria = new SMESH::Filter::Criteria;
   aCriteria->length(n);
@@ -861,7 +862,7 @@ SMESH::Filter_ptr SMESHGUI_FilterLibraryDlg::createFilter(const int theType)
 
   SMESH::FilterManager_var aFilterMgr = SMESH::GetFilterManager();
   SMESH::Filter_var aFilter = aFilterMgr->CreateFilter();
-  aFilter->SetCriteria(aCriteria.inout());
+  aFilter->SetCriteria(aCriteria.in());
 
   return aFilter._retn();
 }