Changeset 13285 in josm


Ignore:
Timestamp:
2018-01-07T00:25:28+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #15740 - Layers don't move up/down correctly if multiple layers are selected

File:
1 edited

Legend:

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

    r12846 r13285  
    829829            for (int row : sel) {
    830830                Layer l1 = layers.get(row);
    831                 Layer l2 = layers.get(row-1);
    832                 mapView.moveLayer(l2, row);
    833831                mapView.moveLayer(l1, row-1);
    834832            }
     
    865863            for (int row : sel) {
    866864                Layer l1 = layers.get(row);
    867                 Layer l2 = layers.get(row+1);
    868865                mapView.moveLayer(l1, row+1);
    869                 mapView.moveLayer(l2, row);
    870866            }
    871867            fireTableDataChanged();
Note: See TracChangeset for help on using the changeset viewer.