Changeset 14173 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2018-08-21T01:02:13+02:00 (10 months ago)
Author:
Don-vip
Message:

fix #16660 - ArrayIndexOutOfBoundsException in MenuScroller

File:
1 edited

Legend:

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

    r14154 r14173  
    316316
    317317            if (mustSCroll) {
    318                 firstIndex = Math.max(topFixedCount, firstIndex);
     318                firstIndex = Math.min(menuItems.length-1, Math.max(topFixedCount, firstIndex));
    319319                int scrollCount = computeScrollCount(firstIndex);
    320320                firstIndex = Math.min(menuItems.length - scrollCount, firstIndex);
Note: See TracChangeset for help on using the changeset viewer.