- Timestamp:
- 2022-06-06T16:56:25+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r18246 r18465 12 12 13 13 import org.openstreetmap.josm.data.IQuadBucketType; 14 import org.openstreetmap.josm.data.coor.ILatLon; 14 15 import org.openstreetmap.josm.data.coor.LatLon; 15 16 import org.openstreetmap.josm.data.coor.QuadTiling; … … 174 175 175 176 boolean matches(final T o, final BBox searchBbox) { 177 // Avoid allocations for point (AKA Node) objects 178 if (o instanceof ILatLon) { 179 return searchBbox.contains((ILatLon) o); 180 } 176 181 return o.getBBox().intersects(searchBbox); 177 182 }
Note:
See TracChangeset
for help on using the changeset viewer.