Changeset 14510 in josm


Ignore:
Timestamp:
2018-12-04T21:47:06+01:00 (3 months ago)
Author:
GerdP
Message:

see #17040 call DrawAction.finishDrawing() when selection is empty or destroy() is called.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r14397 r14510  
    390390        if (!MainApplication.getMap().mapView.isActiveLayerDrawable())
    391391            return;
     392        if (event.getSelection().isEmpty())
     393            finishDrawing();
    392394        // Make sure helper line is computed later (causes deadlock in selection event chain otherwise)
    393395        SwingUtilities.invokeLater(() -> {
     
    13721374    public void destroy() {
    13731375        super.destroy();
     1376        finishDrawing();
    13741377        snapChangeAction.destroy();
    13751378    }
Note: See TracChangeset for help on using the changeset viewer.