Salome HOME
52566: TC7.5.0: Empty group of Balls at Diameter Equal to filter
authoreap <eap@opencascade.com>
Fri, 31 Oct 2014 11:31:51 +0000 (14:31 +0300)
committereap <eap@opencascade.com>
Fri, 31 Oct 2014 11:31:51 +0000 (14:31 +0300)
 Avoid unexpected switch "Equal to" -> "Less than"

src/SMESHGUI/SMESHGUI_FilterDlg.cxx

index 4dfa526..8db0a78 100755 (executable)
@@ -1954,7 +1954,10 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con
       break;
     }
     case 3: {
+      int oldValue = aCompareItem->value();
       aCompareItem->setItems(getCompare());
+      if ( oldValue >= 0 )
+        aCompareItem->setValue( oldValue );
       break;
     }
     }