Changeset 18494 in josm for trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
- Timestamp:
- 2022-06-15T19:27:05+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r18211 r18494 399 399 int w = getWidth()/2; 400 400 int h = getHeight()/2; 401 LatLon ll1 = getLatLon(w-50, h);402 LatLon ll2 = getLatLon(w+50, h);401 ILatLon ll1 = getLatLon(w-50, h); 402 ILatLon ll2 = getLatLon(w+50, h); 403 403 double gcd = ll1.greatCircleDistance(ll2); 404 404 if (alwaysPositive && gcd <= 0) … … 649 649 LatLon ll2 = getLatLon(width / 2 + 50, height / 2); 650 650 if (ll1.isValid() && ll2.isValid() && b.contains(ll1) && b.contains(ll2)) { 651 double dm = ll1.greatCircleDistance( ll2);651 double dm = ll1.greatCircleDistance((ILatLon) ll2); 652 652 double den = 100 * getScale(); 653 653 double scaleMin = 0.01 * den / dm / 100;
Note:
See TracChangeset
for help on using the changeset viewer.