Changeset 1849 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-07-26T10:58:59+02:00 (15 years ago)
Author:
stoecker
Message:

fix #3084 - patch by Pieren

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

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

    r1825 r1849  
    447447    }
    448448
    449     protected static void determinePlatformHook() {
     449    public static void determinePlatformHook() {
    450450        String os = System.getProperty("os.name");
    451451        if (os == null) {
  • trunk/src/org/openstreetmap/josm/data/projection/Lambert.java

    r1823 r1849  
    1313import org.openstreetmap.josm.data.coor.LatLon;
    1414import org.openstreetmap.josm.data.Bounds;
    15 import org.openstreetmap.josm.data.ProjectionBounds;
    1615
    1716public class Lambert implements Projection {
     
    6968
    7069    private static int currentZone = 0;
    71 
    72     private static boolean dontDisplayErrors = false;
    7370
    7471    /**
     
    110107            if (layoutZone == -1) {
    111108                layoutZone = currentZone;
    112                 dontDisplayErrors = false;
    113109            } else if (layoutZone != currentZone) {
    114110                if ((currentZone < layoutZone && Math.abs(zoneLimits[currentZone] - lt) > cMaxOverlappingZones)
     
    121117                    + "and start a new layer on the new zone."));
    122118                    layoutZone = -1;
    123                     dontDisplayErrors = true;
    124119                } else {
    125120                    System.out.println("temporarily extend Lambert zone " + layoutZone + " projection at lat,lon:"
     
    128123            }
    129124        }
    130         if (layoutZone == -1) {
     125        if (layoutZone == -1)
    131126            return ConicProjection(lt, lg, Xs[currentZone], Ys[currentZone], c[currentZone], n[currentZone]);
    132         } // else
    133127        return ConicProjection(lt, lg, Xs[layoutZone], Ys[layoutZone], c[layoutZone], n[layoutZone]);
    134128    }
     
    280274    {
    281275        return new Bounds(
    282         new LatLon(-90.0, -180.0),
    283         new LatLon(90.0, 180.0));
     276                new LatLon(45.0, -4.9074074074074059),
     277                new LatLon(57.0, 10.2));
    284278    }
    285279}
  • trunk/src/org/openstreetmap/josm/gui/MainApplet.java

    r1195 r1849  
    101101        Main.preConstructorInit(args);
    102102        Main.parent = this;
     103
     104        // initialize the plaform hook, and
     105        Main.determinePlatformHook();
     106        // call the really early hook before we anything else
     107        Main.platform.preStartupHook();
     108
    103109        new MainCaller().postConstructorProcessCmdLine(args);
    104110
Note: See TracChangeset for help on using the changeset viewer.