Changeset 13225 in josm


Ignore:
Timestamp:
2017-12-18T18:40:26+01:00 (2 months ago)
Author:
Don-vip
Message:

see #15008 - avoid deadlock in selection event processing

File:
1 edited

Legend:

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

    r13177 r13225  
    3030import javax.swing.JMenuItem;
    3131import javax.swing.JOptionPane;
     32import javax.swing.SwingUtilities;
    3233
    3334import org.openstreetmap.josm.Main;
     
    348349        if (!MainApplication.getMap().mapView.isActiveLayerDrawable())
    349350            return;
    350         computeHelperLine();
    351         addHighlighting();
     351        // Make sure helper line is computed later (causes deadlock in selection event chain otherwise)
     352        SwingUtilities.invokeLater(() -> {
     353            computeHelperLine();
     354            addHighlighting();
     355        });
    352356    }
    353357
Note: See TracChangeset for help on using the changeset viewer.