Changeset 754 in josm for trunk


Ignore:
Timestamp:
2008-08-06T18:55:42+02:00 (16 years ago)
Author:
stoecker
Message:

fixed exception. Closes 1392.

File:
1 edited

Legend:

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

    r746 r754  
    8787                        // especially if the bbox contains one single node, but helpful
    8888                        // in most other cases as well.
    89                         // if (v.min != null && v.max != null && v.min.north() == v.max.north() && v.min.east() == v.max.east()) {
    90                         EastNorth en = Main.proj.latlon2eastNorth(new LatLon(0.001, 0.001));
    91                         v.min = new EastNorth(v.min.east()-en.east(), v.min.north()-en.north());
    92                         v.max = new EastNorth(v.max.east()+en.east(), v.max.north()+en.north());
     89                        if (v.min != null && v.max != null) // && v.min.north() == v.max.north() && v.min.east() == v.max.east()) {
     90                        {
     91                                EastNorth en = Main.proj.latlon2eastNorth(new LatLon(0.001, 0.001));
     92                                v.min = new EastNorth(v.min.east()-en.east(), v.min.north()-en.north());
     93                                v.max = new EastNorth(v.max.east()+en.east(), v.max.north()+en.north());
     94                        }
    9395                }
    9496                return v;
Note: See TracChangeset for help on using the changeset viewer.