Ignore:
Timestamp:
2012-01-21T19:01:46+01:00 (13 years ago)
Author:
akks
Message:

'ImageryAdjust: adjust single visible layer'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustMapMode.java

    r27494 r27540  
    6969            adjustingLayer.setVisible(true);
    7070        }
    71         Main.map.mapView.addMouseListener(this);
     71       Main.map.mapView.addMouseListener(this);
    7272        Main.map.mapView.addMouseMotionListener(this);
    7373    }
     
    146146     */
    147147    protected Layer askAdjustLayer(List<? extends Layer> adjustableLayers) {
     148        if (adjustableLayers.size()==0) return null;
     149        if (adjustableLayers.size()==1) return adjustableLayers.get(0);
    148150        JComboBox layerList = new JComboBox();
    149151        layerList.setRenderer(new LayerListCellRenderer());
Note: See TracChangeset for help on using the changeset viewer.