Fix selection

This commit is contained in:
Victor Shcherb 2015-06-06 13:12:42 +02:00
parent b4374fdc7d
commit b5c18d2d64

View file

@ -569,7 +569,9 @@ public class ConfigureMapMenu {
b.setTitle(propertyDescr);
int i = Arrays.asList(p.getPossibleValues()).indexOf(pref.get());
if(Algorithms.isEmpty(pref.get())) {
if (i >= 0) {
i++;
} else if (Algorithms.isEmpty(pref.get())) {
i = 0;
}