IPAL22907: TC6.5.0: Selection in Create group doesn’t work if the filter ‘Source’ is set to ‘Initial Selection’

Rolling back part of integration made in revision 1.21.2.5.6.12
This commit is contained in:
ouv 2012-04-25 10:22:11 +00:00
parent 0c8bff7618
commit 0bb2ab4898

View File

@ -3188,6 +3188,7 @@ void SMESHGUI_FilterDlg::filterSource (const int theType,
// filter ids
SMESH::Predicate_ptr aPred = myFilter[ theType ]->GetPredicate();
aPred->SetMesh(myMesh);
QList<int>::const_iterator anIter;
for (anIter = aDialogIds.begin(); anIter != aDialogIds.end(); ++ anIter)
if (aPred->IsSatisfy(*anIter))
@ -3260,6 +3261,7 @@ void SMESHGUI_FilterDlg::filterSelectionSource (const int theType,
// Filter entities
SMESH::Predicate_ptr aPred = myFilter[ theType ]->GetPredicate();
aPred->SetMesh(myMesh);
TColStd_MapIteratorOfMapOfInteger aResIter(aToBeFiltered);
for ( ; aResIter.More(); aResIter.Next())
if (aPred->IsSatisfy(aResIter.Key()))