Changeset 10541 in osm for applications/editors/josm/plugins/validator/src
- Timestamp:
- 2008-09-07T19:07:34+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java
r10540 r10541 46 46 /** Serializable ID */ 47 47 private static final long serialVersionUID = 2952292777351992696L; 48 49 private static final double MIN_SCALE_ON_SELECT = 0.00001; 48 50 49 51 /** The display tree */ … … 348 350 testError.visitHighlighted(box); 349 351 if (box.max.equals(box.min)) 350 Main.map.mapView.zoomTo(box.max, 0.00001);351 else 352 Main.map.mapView.zoomTo(box.max, MIN_SCALE_ON_SELECT); 353 else { 352 354 Main.map.mapView.recalculateCenterScale(box); 355 if (Main.map.mapView.getScale() < MIN_SCALE_ON_SELECT) 356 Main.map.mapView.zoomTo(Main.map.mapView.getCenter(), MIN_SCALE_ON_SELECT); 357 } 353 358 } 354 359 }
Note:
See TracChangeset
for help on using the changeset viewer.