Ignore:
Timestamp:
2017-04-12T00:46:52+02:00 (7 years ago)
Author:
donvip
Message:

update JOSM + fix #josm13693 + fix #josm13863

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSAdjustAction.java

    r32556 r33226  
    1818import org.openstreetmap.josm.actions.mapmode.MapMode;
    1919import org.openstreetmap.josm.data.coor.EastNorth;
    20 import org.openstreetmap.josm.gui.MapFrame;
    2120import org.openstreetmap.josm.gui.MapView;
    2221import org.openstreetmap.josm.tools.ImageProvider;
     
    3433    private static EastNorth[] croppedRaster = new EastNorth[5];;
    3534
    36     public WMSAdjustAction(MapFrame mapFrame) {
     35    /**
     36     * Constructs a new {@code WMSAdjustAction} map mode.
     37     */
     38    public WMSAdjustAction() {
    3739        super(tr("Adjust WMS"), "adjustxywms",
    38                         tr("Adjust the position of the WMS layer (saved for raster images only)"), mapFrame,
     40                        tr("Adjust the position of the WMS layer (saved for raster images only)"),
    3941                        ImageProvider.getCursor("normal", "move"));
    4042    }
     
    5052                modifiedLayer.adjustModeEnabled = true;
    5153            } else {
    52 //                JOptionPane.showMessageDialog(Main.parent,tr("This mode works only if active layer is\n"
    53 //                        +"a cadastre layer"));
    54                 exitMode();
     54                // This mode works only if active layer is a cadastre layer
     55                if (Boolean.TRUE.equals(getValue("active"))) {
     56                    exitMode();
     57                }
    5558                Main.map.selectMapMode((MapMode) Main.map.getDefaultButtonAction());
    5659            }
Note: See TracChangeset for help on using the changeset viewer.