Changeset 4631 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2011-12-04T13:31:27+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java
r4630 r4631 193 193 194 194 public PolyData(Way closedWay) { 195 this(closedWay.getNodes(), closedWay.isSelected(), Collections.singleton(closedWay.get Id()));195 this(closedWay.getNodes(), closedWay.isSelected(), Collections.singleton(closedWay.getUniqueId())); 196 196 } 197 197 … … 317 317 318 318 public void wayNodesChanged(WayNodesChangedEvent event) { 319 final Long wayId = event.getChangedWay().get Id();319 final Long wayId = event.getChangedWay().getUniqueId(); 320 320 boolean innerChanged = false; 321 321 for (PolyData inner : inners) { … … 444 444 if (nodes == null) { 445 445 nodes = w.getNodes(); 446 wayIds.add(w.get Id());446 wayIds.add(w.getUniqueId()); 447 447 } 448 448 nodes.remove((mode == 21 || mode == 22) ? nl : 0); … … 460 460 } 461 461 } 462 wayIds.add(c.get Id());462 wayIds.add(c.getUniqueId()); 463 463 } 464 464 } … … 469 469 if (nodes == null) { 470 470 nodes = w.getNodes(); 471 wayIds.add(w.get Id());471 wayIds.add(w.getUniqueId()); 472 472 } 473 473 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java
r4630 r4631 276 276 if (multipolygon != null) { 277 277 for (PolyData pd : multipolygon.getCombinedPolygons()) { 278 if (pd.getWayIds().contains(p.get Id())) {278 if (pd.getWayIds().contains(p.getUniqueId())) { 279 279 pd.selected = true; 280 280 selectedPolyData.add(pd);
Note:
See TracChangeset
for help on using the changeset viewer.