Ignore:
Timestamp:
2017-04-12T00:46:52+02:00 (9 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/Address.java

    r32950 r33226  
    5656import org.openstreetmap.josm.data.osm.Way;
    5757import org.openstreetmap.josm.data.osm.WaySegment;
    58 import org.openstreetmap.josm.gui.MapFrame;
    5958import org.openstreetmap.josm.gui.MapView;
    6059import org.openstreetmap.josm.tools.GBC;
     
    9190    private boolean ctrl;
    9291
    93     public Address(MapFrame mapFrame) {
     92    /**
     93     * Constructs a new {@code Address} map mode.
     94     */
     95    public Address() {
    9496        super(tr("Add address"), "buildings",
    9597                tr("Helping tool for tag address"),
     
    9799                Shortcut.registerShortcut("mapmode:cadastre-fr-buildings", tr("Mode: {0}", tr("CadastreFR - Buildings")), KeyEvent.VK_E, Shortcut.DIRECT),
    98100                // CHECKSTYLE.ON: LineLength
    99                 mapFrame, getCursor());
     101                getCursor());
    100102    }
    101103
     
    114116            Main.map.mapView.removeMouseListener(this);
    115117        }
    116 //        dialog.setVisible(false);
    117118        // kill the window completely to fix an issue on some linux distro and full screen mode.
    118119        if (dialog != null) {
     
    510511            @Override
    511512            public void windowClosing(WindowEvent arg) {
    512                 exitMode();
     513                if (Boolean.TRUE.equals(getValue("active"))) {
     514                    exitMode();
     515                }
    513516                Main.map.selectMapMode((MapMode) Main.map.getDefaultButtonAction());
    514517            }
Note: See TracChangeset for help on using the changeset viewer.