Changeset 16136 in josm


Ignore:
Timestamp:
2020-03-15T17:19:14+01:00 (2 months ago)
Author:
GerdP
Message:

see #18928: improve notification when empty way is used in Align nodes

File:
1 edited

Legend:

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

    r16119 r16136  
    195195        List<Node> selectedNodes = new ArrayList<>(ds.getSelectedNodes());
    196196        List<Way> selectedWays = new ArrayList<>(ds.getSelectedWays());
    197         selectedWays.removeIf(OsmPrimitive::isIncomplete);
     197        selectedWays.removeIf(w -> w.isIncomplete() || w.isEmpty());
    198198
    199199        // Decide what to align based on selection:
Note: See TracChangeset for help on using the changeset viewer.