Changeset 7764 in josm for trunk/src/org


Ignore:
Timestamp:
2014-12-05T01:10:47+01:00 (10 years ago)
Author:
Don-vip
Message:

fix #10809 - Cannot click on geotagged pictures in 'Lasso Select Mode'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java

    r7005 r7764  
    4141
    4242import org.openstreetmap.josm.Main;
     43import org.openstreetmap.josm.actions.LassoModeAction;
    4344import org.openstreetmap.josm.actions.RenameLayerAction;
    4445import org.openstreetmap.josm.actions.mapmode.MapMode;
     
    838839    /**
    839840     * Determines if the functionality of this layer is available in
    840      * the specified map mode.  SelectAction is supported by default,
     841     * the specified map mode. {@link SelectAction} and {@link LassoModeAction} are supported by default,
    841842     * other map modes can be registered.
    842843     * @param mapMode Map mode to be checked
     
    845846     */
    846847    private static final boolean isSupportedMapMode(MapMode mapMode) {
    847         if (mapMode instanceof SelectAction) return true;
     848        if (mapMode instanceof SelectAction || mapMode instanceof LassoModeAction) {
     849            return true;
     850        }
    848851        if (supportedMapModes != null) {
    849852            for (MapMode supmmode: supportedMapModes) {
Note: See TracChangeset for help on using the changeset viewer.