- Timestamp:
- 2024-08-05T21:18:00+02:00 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
r19050 r19167 20 20 import org.openstreetmap.josm.actions.SelectByInternalPointAction; 21 21 import org.openstreetmap.josm.data.Bounds; 22 import org.openstreetmap.josm.data.osm.BBox; 22 23 import org.openstreetmap.josm.data.osm.DataSet; 23 24 import org.openstreetmap.josm.data.osm.Node; … … 383 384 } 384 385 } else if (ds != null) { 386 final BBox bbox = nc.getLatLonBounds(bounding).toBBox(); 385 387 // nodes 386 for (Node n : ds. getNodes()) {388 for (Node n : ds.searchNodes(bbox)) { 387 389 if (n.isSelectable() && selectionResult.contains(nc.getPoint2D(n))) { 388 390 selection.add(n); … … 391 393 392 394 // ways 393 for (Way w : ds. getWays()) {395 for (Way w : ds.searchWays(bbox)) { 394 396 if (!w.isSelectable() || w.isEmpty()) { 395 397 continue;
Note:
See TracChangeset
for help on using the changeset viewer.