aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/mapcommon/cgOverlayScale.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgeo/geocaching/mapcommon/cgOverlayScale.java')
-rw-r--r--src/cgeo/geocaching/mapcommon/cgOverlayScale.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cgeo/geocaching/mapcommon/cgOverlayScale.java b/src/cgeo/geocaching/mapcommon/cgOverlayScale.java
index e4db67c..f7fb969 100644
--- a/src/cgeo/geocaching/mapcommon/cgOverlayScale.java
+++ b/src/cgeo/geocaching/mapcommon/cgOverlayScale.java
@@ -59,8 +59,7 @@ public class cgOverlayScale implements OverlayBase {
final Geopoint leftCoords = new Geopoint(center.getLatitudeE6() / 1e6, center.getLongitudeE6() / 1e6 - span /2);
final Geopoint rightCoords = new Geopoint(center.getLatitudeE6() / 1e6, center.getLongitudeE6() / 1e6 + span /2);
- distance = cgBase.getDistance(leftCoords, rightCoords);
- distance = distance / 2;
+ distance = leftCoords.distanceTo(rightCoords) / 2;
distanceRound = 0d;
if(settings.units == cgSettings.unitsImperial) {