Changeset 24784 in osm for applications/editors/josm
- Timestamp:
- 2010-12-17T15:22:07+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/SplitAreaByEmptyWayAction.java
r23190 r24784 8 8 import java.util.Collections; 9 9 import java.util.List; 10 import java.util.LinkedList; 10 11 11 12 import javax.swing.JOptionPane; … … 54 55 55 56 Collection<Way> selectedWays = Main.main.getCurrentDataSet().getSelectedWays(); 56 Collection<Way> newSelection = Main.main.getCurrentDataSet().getSelectedWays();57 Collection<Way> newSelection = new LinkedList(Main.main.getCurrentDataSet().getSelectedWays()); 57 58 58 for (OsmPrimitive prim : selectedWays) { 59 if (!((Way) prim).isClosed()) continue; 60 Way area = (Way) prim; 59 for (Way area : selectedWays) { 60 if (! area.isClosed()) continue; 61 61 62 62 for (OsmPrimitive prim2 : Main.main.getCurrentDataSet().allNonDeletedPrimitives()) { 63 63 if (!(prim2 instanceof Way)) continue; 64 if (prim2.equals( prim)) continue;64 if (prim2.equals(area)) continue; 65 65 Way border = (Way) prim2; 66 66 if (border.getNodes().size() == 0) continue;
Note:
See TracChangeset
for help on using the changeset viewer.