Changeset 1849 in josm
- Timestamp:
- 2009-07-26T10:58:59+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r1825 r1849 447 447 } 448 448 449 p rotectedstatic void determinePlatformHook() {449 public static void determinePlatformHook() { 450 450 String os = System.getProperty("os.name"); 451 451 if (os == null) { -
trunk/src/org/openstreetmap/josm/data/projection/Lambert.java
r1823 r1849 13 13 import org.openstreetmap.josm.data.coor.LatLon; 14 14 import org.openstreetmap.josm.data.Bounds; 15 import org.openstreetmap.josm.data.ProjectionBounds;16 15 17 16 public class Lambert implements Projection { … … 69 68 70 69 private static int currentZone = 0; 71 72 private static boolean dontDisplayErrors = false;73 70 74 71 /** … … 110 107 if (layoutZone == -1) { 111 108 layoutZone = currentZone; 112 dontDisplayErrors = false;113 109 } else if (layoutZone != currentZone) { 114 110 if ((currentZone < layoutZone && Math.abs(zoneLimits[currentZone] - lt) > cMaxOverlappingZones) … … 121 117 + "and start a new layer on the new zone.")); 122 118 layoutZone = -1; 123 dontDisplayErrors = true;124 119 } else { 125 120 System.out.println("temporarily extend Lambert zone " + layoutZone + " projection at lat,lon:" … … 128 123 } 129 124 } 130 if (layoutZone == -1) {125 if (layoutZone == -1) 131 126 return ConicProjection(lt, lg, Xs[currentZone], Ys[currentZone], c[currentZone], n[currentZone]); 132 } // else133 127 return ConicProjection(lt, lg, Xs[layoutZone], Ys[layoutZone], c[layoutZone], n[layoutZone]); 134 128 } … … 280 274 { 281 275 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)); 284 278 } 285 279 } -
trunk/src/org/openstreetmap/josm/gui/MainApplet.java
r1195 r1849 101 101 Main.preConstructorInit(args); 102 102 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 103 109 new MainCaller().postConstructorProcessCmdLine(args); 104 110
Note:
See TracChangeset
for help on using the changeset viewer.