Changeset 27540 in osm for applications


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

'ImageryAdjust: adjust single visible layer'

Location:
applications/editors/josm/plugins/imageryadjust
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imageryadjust/build.xml

    r27494 r27540  
    3030<project name="imageryadjust" default="dist" basedir=".">
    3131    <!-- enter the SVN commit message -->
    32     <property name="commit.message" value="ImageryAdjust: show visible layers only"/>
     32    <property name="commit.message" value="ImageryAdjust: adjust single visible layer"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3434    <property name="plugin.main.version" value="4667"/>
  • 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.