Salome HOME
22812: EDF 9218 SMESH: An empty group is created when using the duplicate nodes and...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_FilterDlg.cxx
index 8409afa4a0f54b61bce997949ef38269d7e850d2..8db0a78141b2dac70528ed0d9926c16e7c5537e5 100755 (executable)
@@ -62,8 +62,6 @@
 #include <SalomeApp_DoubleSpinBox.h>
 
 #include <SALOME_ListIO.hxx>
-#include <SALOME_ListIteratorOfListIO.hxx>
-#include <SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger.hxx>
 
 #include <SVTK_ViewWindow.h>
 
@@ -1956,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;
     }
     }