From: jfa Date: Thu, 15 Sep 2005 13:39:48 +0000 (+0000) Subject: Fix pb. with 'Belong to ...' filters creation X-Git-Tag: V3_1_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d21bf88f5829fb7071a310f81093edab6e531b3;p=modules%2Fsmesh.git Fix pb. with 'Belong to ...' filters creation --- 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(); }