Changeset 24946 in osm for applications/editors/josm
- Timestamp:
- 2011-01-02T14:11:44+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/OsmUtils.java
r24942 r24946 214 214 CheckParameterUtil.ensureParameterNotNull(addressList, "addressList"); 215 215 216 if (Main.map == null && Main.map.mapView == null) return; // nothing to do 216 if (Main.map == null && Main.map.mapView == null) return; // nothing to do 217 if (addressList.size() == 0) return; // dto. 217 218 218 219 // compute bounding box … … 224 225 } 225 226 226 // zoom to calculated bounding box 227 Main.map.mapView.zoomTo(bbox.getBounds()); 227 if (bbox.getBounds() != null) { 228 // zoom to calculated bounding box 229 Main.map.mapView.zoomTo(bbox.getBounds()); 230 } 228 231 } 229 232
Note:
See TracChangeset
for help on using the changeset viewer.