1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 01:35:39 +02:00

222954: fix default selection

This commit is contained in:
Andrew Ferguson 2008-03-18 17:26:25 +00:00
parent e4c3404795
commit 41ee517929

View file

@ -108,9 +108,9 @@ public class UISelectWidget extends InputUIElement {
// populate combo
int index= 0, defaultIndex= 0;
for(String name : value2name.values()) {
combo.add(name);
if(name.equals(defaultValue)) {
for(String value : value2name.keySet()) {
combo.add(value2name.get(value));
if(value.equals(defaultValue)) {
defaultIndex= index;
}
index++;