- Timestamp:
- 2009-11-22T11:07:36+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/UTM.java
r2491 r2496 430 430 String zonestring = code.substring(9); 431 431 int zoneval = Integer.parseInt(zonestring); 432 if(zoneval > 0 && zone <= 60)432 if(zoneval > 0 && zoneval <= 60) 433 433 { 434 434 return Collections.singleton(zonestring); -
trunk/src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java
r2491 r2496 91 91 projPanel.add(bounds, GBC.eop().fill(GBC.HORIZONTAL).insets(0,5,5,5)); 92 92 projPanel.add(projSubPrefPanel, projSubPrefPanelGBC); 93 93 94 JScrollPane scrollpane = new JScrollPane(projPanel); 94 95 gui.mapcontent.addTab(tr("Map Projection"), scrollpane); 95 96 96 projectionCode.setText(Main.proj.toCode()); 97 Bounds b = Main.proj.getWorldBoundsLatLon(); 97 updateMeta(Main.proj); 98 } 99 100 private void updateMeta(Projection proj) 101 { 102 projectionCode.setText(proj.toCode()); 103 Bounds b = proj.getWorldBoundsLatLon(); 98 104 CoordinateFormat cf = CoordinateFormat.getDefaultFormat(); 99 105 bounds.setText(b.getMin().latToString(cf)+"; "+b.getMin().lonToString(cf)+" : "+b.getMax().latToString(cf)+"; "+b.getMax().lonToString(cf)); 100 /* TODO: Fix bugs, refresh code line and world bounds, fix design (e.g. add border around sub-prefs-stuff */101 106 } 102 107 … … 109 114 prefs = ((ProjectionSubPrefs) proj).getPreferences(); 110 115 111 if(Main.pref.put("projection", projname)) { 112 setProjection(projname, prefs); 113 } 116 Main.pref.put("projection", projname); 117 setProjection(projname, prefs); 114 118 115 119 if(Main.pref.put("coordinates", … … 200 204 projPanel.add(projSubPrefPanel, projSubPrefPanelGBC); 201 205 projPanel.revalidate(); 206 projSubPrefPanel.repaint(); 207 updateMeta(proj); 202 208 } 203 209
Note:
See TracChangeset
for help on using the changeset viewer.