Changeset 5186 in josm for trunk/src


Ignore:
Timestamp:
2012-04-15T00:02:45+02:00 (8 years ago)
Author:
Don-vip
Message:

fix tabs introduced in last commit with spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java

    r5185 r5186  
    222222        }
    223223        if (menuItemHeight > 0) {
    224                 int scrollcount = (Toolkit.getDefaultToolkit().getScreenSize().height / menuItemHeight) - 1;
    225                 if (subMenu instanceof JMenu) {
    226                         MenuScroller.setScrollerFor((JMenu) subMenu, scrollcount);
    227                 } else if (subMenu instanceof JPopupMenu) {
    228                         MenuScroller.setScrollerFor((JPopupMenu)subMenu, scrollcount);
    229                 }
     224            int scrollcount = (Toolkit.getDefaultToolkit().getScreenSize().height / menuItemHeight) - 1;
     225            if (subMenu instanceof JMenu) {
     226                MenuScroller.setScrollerFor((JMenu) subMenu, scrollcount);
     227            } else if (subMenu instanceof JPopupMenu) {
     228                MenuScroller.setScrollerFor((JPopupMenu)subMenu, scrollcount);
     229            }
    230230        }
    231231        return (hasBookmarks || offsetServerSupported) ? subMenu : adjustMenuItem;
Note: See TracChangeset for help on using the changeset viewer.