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


Ignore:
Timestamp:
2009-08-05T10:41:36+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3186: WMS-layer cannot be moved unless the layer is "active"

File:
1 edited

Legend:

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

    r1911 r1913  
    965965            if (layer == null)
    966966                return;
    967             Main.map.mapView.moveLayer(layer,0);
    968967            Main.map.mapView.setActiveLayer(layer);
    969968            layer.setVisible(true);
    970             selectionModel.setSelectionInterval(0,0);
     969            int idx = getLayers().indexOf(layer);
     970            selectionModel.setSelectionInterval(idx,idx);
    971971            ensureSelectedIsVisible();
    972972        }
Note: See TracChangeset for help on using the changeset viewer.