Ignore:
Timestamp:
2017-03-25T17:33:06+01:00 (9 years ago)
Author:
Don-vip
Message:

fix #13922 - zoom only once when downloading several data types

File:
1 edited

Legend:

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

    r10300 r11774  
    9797
    9898    /**
     99     * Extends bounds to include bounds {@code b}.
     100     * @param b bounds to include
     101     * @since 11774
     102     */
     103    public void extend(ProjectionBounds b) {
     104        if (b.minEast < minEast) {
     105            minEast = b.minEast;
     106        }
     107        if (b.maxEast > maxEast) {
     108            maxEast = b.maxEast;
     109        }
     110        if (b.minNorth < minNorth) {
     111            minNorth = b.minNorth;
     112        }
     113        if (b.maxNorth > maxNorth) {
     114            maxNorth = b.maxNorth;
     115        }
     116    }
     117
     118    /**
    99119     * Returns the center east/north.
    100120     * @return the center east/north
Note: See TracChangeset for help on using the changeset viewer.