From 0d21bf88f5829fb7071a310f81093edab6e531b3 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 15 Sep 2005 13:39:48 +0000 Subject: [PATCH] Fix pb. with 'Belong to ...' filters creation --- src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx index 18eb314cf..c4ca04c37 100644 --- a/src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx @@ -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(); } -- 2.39.2