Changeset 36333 in osm for applications/editors
- Timestamp:
- 2024-09-05T15:51:01+02:00 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustWorker.java
r36188 r36333 10 10 import org.openstreetmap.josm.data.coor.ILatLon; 11 11 import org.openstreetmap.josm.data.coor.LatLon; 12 import org.openstreetmap.josm.data.projection.Projection; 12 13 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 13 14 import org.openstreetmap.josm.gui.MainApplication; … … 166 167 } else { 167 168 disableCenterView(); 169 final Projection proj = ProjectionRegistry.getProjection(); 170 if (dragPhoto.getPos() == null) { 171 // Set a false location -- the image most likely has no position 172 // So we use a location in the middle of the projection bounds to ensure that everything works. 173 dragPhoto.setPos(proj.getWorldBoundsLatLon().getCenter()); 174 } 168 175 final EastNorth startEN = dragPhoto.getPos().getEastNorth(ProjectionRegistry.getProjection()).subtract(dragOffset); 169 176 final EastNorth currentEN = MainApplication.getMap().mapView.getEastNorth(evt.getX(), evt.getY());
Note:
See TracChangeset
for help on using the changeset viewer.