From: eap Date: Thu, 26 Apr 2012 09:34:14 +0000 (+0000) Subject: PAL22907: Selection in Create group doesn't work if the filter 'Source' is set to... X-Git-Tag: TRIPOLI_323~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6e82f60157463bcfad282b4509f0b3c1f3523c64;p=modules%2Fsmesh.git PAL22907: Selection in Create group doesn't work if the filter 'Source' is set to "Initial Selection" to fix python dump - aPred->SetMesh(myMesh); + myFilter[ theType ]->SetMesh(myMesh); --- diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index 0474c389f..2ed633149 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -3188,7 +3188,7 @@ void SMESHGUI_FilterDlg::filterSource (const int theType, // filter ids SMESH::Predicate_ptr aPred = myFilter[ theType ]->GetPredicate(); - aPred->SetMesh(myMesh); + myFilter[ theType ]->SetMesh(myMesh); QList::const_iterator anIter; for (anIter = aDialogIds.begin(); anIter != aDialogIds.end(); ++ anIter) if (aPred->IsSatisfy(*anIter)) @@ -3261,7 +3261,7 @@ void SMESHGUI_FilterDlg::filterSelectionSource (const int theType, // Filter entities SMESH::Predicate_ptr aPred = myFilter[ theType ]->GetPredicate(); - aPred->SetMesh(myMesh); + myFilter[ theType ]->SetMesh(myMesh); TColStd_MapIteratorOfMapOfInteger aResIter(aToBeFiltered); for ( ; aResIter.More(); aResIter.Next()) if (aPred->IsSatisfy(aResIter.Key()))