diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-07-01 11:29:44 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-07-01 11:29:44 +0200 |
commit | 13033f965e55d7abb6c0807c1853652fa51627ff (patch) | |
tree | 59fc08aa2bfa31c20ab89fa9cc21af101c5835ea /main/src | |
parent | 2b744ff80e20203f8d4e3e4a6891f799a500e8ac (diff) | |
download | cgeo-13033f965e55d7abb6c0807c1853652fa51627ff.zip cgeo-13033f965e55d7abb6c0807c1853652fa51627ff.tar.gz cgeo-13033f965e55d7abb6c0807c1853652fa51627ff.tar.bz2 |
fix #1828: Coords conversion to DMS not working correct
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/cgeo/geocaching/geopoint/Geopoint.java | 2 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/geopoint/GeopointFormatter.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/geopoint/Geopoint.java b/main/src/cgeo/geocaching/geopoint/Geopoint.java index 612b6ad..7d585ac 100644 --- a/main/src/cgeo/geocaching/geopoint/Geopoint.java +++ b/main/src/cgeo/geocaching/geopoint/Geopoint.java @@ -583,7 +583,7 @@ public final class Geopoint implements ICoordinates, Parcelable { } private static double getSecRaw(final double deg) { - return (Math.abs(deg) * 3600) % 3600; + return (Math.abs(deg) * 3600) % 60; } private static String addZeros(final int value, final int len) { diff --git a/main/src/cgeo/geocaching/geopoint/GeopointFormatter.java b/main/src/cgeo/geocaching/geopoint/GeopointFormatter.java index 0b3df05..c706e77 100644 --- a/main/src/cgeo/geocaching/geopoint/GeopointFormatter.java +++ b/main/src/cgeo/geocaching/geopoint/GeopointFormatter.java @@ -23,7 +23,7 @@ public class GeopointFormatter /** Example: "N 10° 12.345 W 5° 12.345" */ LAT_LON_DECMINUTE_RAW, - /** Example: "N 10° 12' 34" W 5° 12' 34"" */ + /** Example: "N 10° 12' 34" W 5° 12' 34" */ LAT_LON_DECSECOND, /** Example: "-0.123456" (unlocalized latitude) */ |