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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/ViewportData.java

    r7816 r7817  
    33
    44import org.openstreetmap.josm.data.coor.EastNorth;
     5import org.openstreetmap.josm.tools.CheckParameterUtil;
    56
    67/**
     
    2829     */
    2930    public ViewportData(EastNorth center, Double scale) {
     31        CheckParameterUtil.ensureParameterNotNull(center);
     32        CheckParameterUtil.ensureParameterNotNull(scale);
    3033        this.center = center;
    3134        this.scale = scale;
     
    3437
    3538    public ViewportData(ProjectionBounds bounds) {
     39        CheckParameterUtil.ensureParameterNotNull(bounds);
    3640        this.center = null;
    3741        this.scale = null;
Note: See TracChangeset for help on using the changeset viewer.