Ignore:
Timestamp:
2019-01-26T09:07:58+01:00 (5 years ago)
Author:
GerdP
Message:

fix #16706 (16706-improve-v2.patch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    r14685 r14734  
    433433        @Override
    434434        public void actionPerformed(ActionEvent e) {
    435             BoundingXYVisitor box = new BoundingXYVisitor();
     435            BoundingXYVisitor v = new BoundingXYVisitor();
    436436            Collection<OsmPrimitive> sel = model.getSelected();
    437437            if (sel.isEmpty()) return;
    438             box.computeBoundingBox(sel);
    439             if (box.getBounds() == null)
     438            v.computeBoundingBox(sel);
     439            if (v.getBounds() == null)
    440440                return;
    441             box.enlargeBoundingBox();
    442             MainApplication.getMap().mapView.zoomTo(box);
     441            MainApplication.getMap().mapView.zoomTo(v);
    443442        }
    444443
Note: See TracChangeset for help on using the changeset viewer.