Changeset 13186 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2017-12-02T21:06:00+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDataText.java
r13167 r13186 221 221 Pair<Integer, Hemisphere> utmZone = TransverseMercator.locateUtmZone(n.getCoor()); 222 222 String utmLabel = tr("UTM Zone"); 223 add(utmLabel, utmLabel.endsWith(":") ? " " : ": ", Integer.toString(utmZone.a), utmZone.b. toString().substring(0, 1));223 add(utmLabel, utmLabel.endsWith(":") ? " " : ": ", Integer.toString(utmZone.a), utmZone.b.name().substring(0, 1)); 224 224 } 225 225 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r13131 r13186 779 779 780 780 // overscan to prevent empty edges when zooming in to zoom scales > 2:1 781 if (w > imgRect.width && h > imgRect.height && !imgRect.isFullView1D()) { 782 if (wFact != hFact) { 783 if (wFact > hFact) { 784 w = compRect.width; 785 x = 0; 786 h = wFact / imgRect.width; 787 y = (compRect.height - h) / 2; 788 } else { 789 h = compRect.height; 790 y = 0; 791 w = hFact / imgRect.height; 792 x = (compRect.width - w) / 2; 793 } 781 if (w > imgRect.width && h > imgRect.height && !imgRect.isFullView1D() && wFact != hFact) { 782 if (wFact > hFact) { 783 w = compRect.width; 784 x = 0; 785 h = wFact / imgRect.width; 786 y = (compRect.height - h) / 2; 787 } else { 788 h = compRect.height; 789 y = 0; 790 w = hFact / imgRect.height; 791 x = (compRect.width - w) / 2; 794 792 } 795 793 }
Note:
See TracChangeset
for help on using the changeset viewer.