use 0 or [] to unselect items in combobox 41/13941/2
Antoine ELIAS [Thu, 6 Mar 2014 16:05:14 +0000 (17:05 +0100)]
Change-Id: Iea9d3067abc6c8112c36e288e328dd5ac95ca4a5

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/popupmenu/SwingScilabPopupMenu.java

index c74c95c..e065a5b 100644 (file)
@@ -439,7 +439,7 @@ public class SwingScilabPopupMenu extends JComboBox implements SwingViewObject,
 
                 //[] or 0 -> no selection
                 if (doubleValue.length == 0 || doubleValue[0] == 0) {
-                    setUserSelectedIndex(-1);
+                    setUserSelectedIndex(0);
                     return;
                 }