Salome HOME
Fix for the bug IPAL21960: Filter Free borders is wrong after Borders in the Criterion
authorana <ana@opencascade.com>
Thu, 23 Dec 2010 14:36:36 +0000 (14:36 +0000)
committerana <ana@opencascade.com>
Thu, 23 Dec 2010 14:36:36 +0000 (14:36 +0000)
src/SMESHGUI/SMESHGUI_FilterDlg.cxx

index f9b4af0349ffcd439d545df0bf4eedf3c729c7ec..1214c03dbce2442d0c7be5218d2a2e190338e96d 100755 (executable)
@@ -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 ||