From: ana Date: Thu, 23 Dec 2010 14:36:36 +0000 (+0000) Subject: Fix for the bug IPAL21960: Filter Free borders is wrong after Borders in the Criterion X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ab50c947d7eb8cd33c4ed577b2715cc2a437db8;p=modules%2Fsmesh.git Fix for the bug IPAL21960: Filter Free borders is wrong after Borders in the Criterion --- diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index f9b4af034..1214c03db 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -1425,6 +1425,7 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con if (aCompareItem->count() > 0) aCompareItem->clear(); aTable->setEditable(false, row, 1); + aTable->item(row, 2)->setText( QString("") ); aTable->setEditable(aCriterionType == SMESH::FT_GroupColor || aCriterionType == SMESH::FT_ElemGeomType, row, 2); aTable->blockSignals( isSignalsBlocked ); @@ -3031,9 +3032,10 @@ void SMESHGUI_FilterDlg::updateSelection() mySelectionMgr->clearFilters(); int aRow, aCol; - + + bool isCurrentCell = myTable->CurrentCell(aRow, aCol); int aCriterionType = myTable->GetCriterionType(aRow); - if (myTable->CurrentCell(aRow, aCol) && + if ( isCurrentCell && (aCriterionType == SMESH::FT_BelongToGeom || aCriterionType == SMESH::FT_BelongToPlane || aCriterionType == SMESH::FT_BelongToCylinder ||