Ignore:
Timestamp:
2014-12-17T13:46:53+01:00 (5 years ago)
Author:
bastiK
Message:

fixed #10861 - Zoom to layer when opening new file (see #10860)

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java

    r7668 r7817  
    8585        bboxCalculator.enlargeBoundingBox();
    8686        if (bboxCalculator.getBounds() != null) {
    87             Main.map.mapView.recalculateCenterScale(bboxCalculator);
     87            Main.map.mapView.zoomTo(bboxCalculator);
    8888        }
    8989    }
     
    174174                BoundingXYVisitor bbox = getBoundingBox();
    175175                if (bbox != null && bbox.getBounds() != null) {
    176                     Main.map.mapView.recalculateCenterScale(bbox);
     176                    Main.map.mapView.zoomTo(bbox);
    177177                }
    178178            }
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r7816 r7817  
    265265            BoundingXYVisitor v = new BoundingXYVisitor();
    266266            v.visit(pb);
    267             Main.map.mapView.recalculateCenterScale(v);
     267            Main.map.mapView.zoomTo(v);
    268268        }
    269269
Note: See TracChangeset for help on using the changeset viewer.