Changeset 14120 in josm for trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
- Timestamp:
- 2018-08-11T17:29:48+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r13867 r14120 26 26 import org.openstreetmap.josm.data.coor.LatLon; 27 27 import org.openstreetmap.josm.data.imagery.OffsetBookmark; 28 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 28 29 import org.openstreetmap.josm.gui.ExtendedDialog; 29 30 import org.openstreetmap.josm.gui.MainApplication; … … 74 75 } 75 76 old = layer.getDisplaySettings().getOffsetBookmark(); 76 EastNorth curOff = old == null ? EastNorth.ZERO : old.getDisplacement( Main.getProjection());77 EastNorth curOff = old == null ? EastNorth.ZERO : old.getDisplacement(ProjectionRegistry.getProjection()); 77 78 LatLon center; 78 79 if (MainApplication.isDisplayingMapView()) { 79 center = Main.getProjection().eastNorth2latlon(MainApplication.getMap().mapView.getCenter());80 center = ProjectionRegistry.getProjection().eastNorth2latlon(MainApplication.getMap().mapView.getCenter()); 80 81 } else { 81 82 center = LatLon.ZERO; 82 83 } 83 84 tempOffset = new OffsetBookmark( 84 Main.getProjection().toCode(),85 ProjectionRegistry.getProjection().toCode(), 85 86 layer.getInfo().getId(), 86 87 layer.getInfo().getName(), … … 258 259 "You can also enter east and north offset in the {0} coordinates.\n" + 259 260 "If you want to save the offset as bookmark, enter the bookmark name below", 260 Main.getProjection().toString())), GBC.eop());261 ProjectionRegistry.getProjection().toString())), GBC.eop()); 261 262 pnl.add(new JLabel(tr("Offset:")), GBC.std()); 262 263 pnl.add(tOffset, GBC.eol().fill(GBC.HORIZONTAL).insets(0, 0, 0, 5)); … … 313 314 if (layer != null) { 314 315 // Support projections with very small numbers (e.g. 4326) 315 int precision = Main.getProjection().getDefaultZoomInPPD() >= 1.0 ? 2 : 7;316 int precision = ProjectionRegistry.getProjection().getDefaultZoomInPPD() >= 1.0 ? 2 : 7; 316 317 // US locale to force decimal separator to be '.' 317 318 try (Formatter us = new Formatter(Locale.US)) {
Note:
See TracChangeset
for help on using the changeset viewer.