]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
authoreap <eap@opencascade.com>
Fri, 23 Mar 2012 09:52:28 +0000 (09:52 +0000)
committereap <eap@opencascade.com>
Fri, 23 Mar 2012 09:52:28 +0000 (09:52 +0000)
  set "Compare" to FT_EqualTo instead of FT_Undefined

src/SMESHGUI/SMESHGUI_FilterDlg.cxx

index 685120057d9796a3246253476d326ba3e397986c..b3f81c9d534aa67bcfecbab2e09650ca68946b06 100755 (executable)
@@ -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)