Fix selection
This commit is contained in:
parent
b4374fdc7d
commit
b5c18d2d64
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue