Changeset 14734 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
- Timestamp:
- 2019-01-26T09:07:58+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r14685 r14734 433 433 @Override 434 434 public void actionPerformed(ActionEvent e) { 435 BoundingXYVisitor box= new BoundingXYVisitor();435 BoundingXYVisitor v = new BoundingXYVisitor(); 436 436 Collection<OsmPrimitive> sel = model.getSelected(); 437 437 if (sel.isEmpty()) return; 438 box.computeBoundingBox(sel);439 if ( box.getBounds() == null)438 v.computeBoundingBox(sel); 439 if (v.getBounds() == null) 440 440 return; 441 box.enlargeBoundingBox(); 442 MainApplication.getMap().mapView.zoomTo(box); 441 MainApplication.getMap().mapView.zoomTo(v); 443 442 } 444 443
Note:
See TracChangeset
for help on using the changeset viewer.