Changeset 14276 in josm for trunk


Ignore:
Timestamp:
2018-09-28T01:06:11+02:00 (10 months ago)
Author:
Don-vip
Message:

fix #16785 - fix IOOBE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/FilterModel.java

    r14206 r14276  
    254254     */
    255255    public boolean moveUpFilter(int rowIndex) {
    256         if (rowIndex == 0)
     256        if (rowIndex <= 0 || rowIndex >= filters.size())
    257257            return false;
    258258        filters.add(rowIndex - 1, filters.remove(rowIndex));
Note: See TracChangeset for help on using the changeset viewer.