0021517: Bad filter dumped when hdf study from previous version of Salome is loaded

set "Compare" to FT_EqualTo instead of FT_Undefined
This commit is contained in:
eap 2012-03-23 09:52:28 +00:00
parent ddec989c2f
commit f932a6abb6

View File

@ -1282,7 +1282,10 @@ void SMESHGUI_FilterTable::SetCriterion (const int theRow,
((ComboItem*)aTable->item(theRow, 0))->setValue(theCriterion.Type);
onCriterionChanged(theRow, 0, aType);
((ComboItem*)aTable->item(theRow, 1))->setValue(theCriterion.Compare);
if ( theCriterion.Compare == SMESH::FT_Undefined )
((ComboItem*)aTable->item(theRow, 1))->setValue( SMESH::FT_EqualTo );
else
((ComboItem*)aTable->item(theRow, 1))->setValue(theCriterion.Compare);
((CheckItem*)aTable->item(theRow, 3))->setChecked(theCriterion.UnaryOp == SMESH::FT_LogicalNOT);
if (theCriterion.BinaryOp != SMESH::FT_Undefined)