Ignore:
Timestamp:
2012-08-18T14:58:25+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #7917 - Control the number of items displayed at once in all comboboxes (replaced configurable method with a dynamic method based on screen height and look and feel)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java

    r5266 r5450  
    322322                    public void focusGained(FocusEvent e) {
    323323                        AutoCompletionList list = tfRole.getAutoCompletionList();
    324                         list.clear();
    325                         getLayer().data.getAutoCompletionManager().populateWithMemberRoles(list);
     324                        if (list != null) {
     325                            list.clear();
     326                            getLayer().data.getAutoCompletionManager().populateWithMemberRoles(list);
     327                        }
    326328                    }
    327329                }
Note: See TracChangeset for help on using the changeset viewer.