- Timestamp:
- 2024-09-19T15:38:39+02:00 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
r19050 r19227 13 13 import java.awt.event.KeyEvent; 14 14 import java.awt.event.MouseEvent; 15 import java.util.ArrayList; 15 16 import java.util.Collection; 16 17 import java.util.Collections; … … 18 19 import java.util.EnumSet; 19 20 import java.util.LinkedHashSet; 21 import java.util.List; 20 22 import java.util.Map; 21 23 import java.util.Optional; … … 287 289 // Since the created way is left selected, we need to unselect again here 288 290 if (pWays != null && pWays.getWays() != null) { 289 getLayerManager().getEditDataSet().clearSelection(pWays.getWays()); 291 final List<Way> ways = new ArrayList<>(pWays.getWays()); 292 ways.removeIf(w -> w.getDataSet() == null); 293 getLayerManager().getEditDataSet().clearSelection(ways); 290 294 pWays = null; 291 295 }
Note:
See TracChangeset
for help on using the changeset viewer.