0020895: EDF 1428 SMESH: Bug in creation of groups using Set Filter

This commit is contained in:
vsr 2010-06-03 05:05:38 +00:00
parent 4f2b9cb04d
commit 8774b2b4ec

View File

@ -2987,14 +2987,12 @@ void SMESHGUI_FilterDlg::onSelectionDone()
} }
} }
int aCriterionType = myTable->GetCriterionType(aRow); QList<int> types;
if (aList.Extent() != 1 || types << SMESH::FT_BelongToGeom << SMESH::FT_BelongToPlane
!myTable->CurrentCell(aRow, aCol) || << SMESH::FT_BelongToCylinder << SMESH::FT_BelongToGenSurface
aCriterionType != SMESH::FT_BelongToGeom && << SMESH::FT_LyingOnGeom;
aCriterionType != SMESH::FT_BelongToPlane && if (aList.Extent() != 1 || !myTable->CurrentCell(aRow, aCol) ||
aCriterionType != SMESH::FT_BelongToCylinder && !types.contains(myTable->GetCriterionType(aRow)))
aCriterionType != SMESH::FT_BelongToGenSurface &&
aCriterionType != SMESH::FT_LyingOnGeom)
return; return;
Handle(SALOME_InteractiveObject) anIO = aList.First(); Handle(SALOME_InteractiveObject) anIO = aList.First();