Fix PointDescription

This commit is contained in:
Alexey 2017-04-14 15:37:59 +03:00 committed by GitHub
parent 295bb5ba21
commit 11329a72ef

View file

@ -158,7 +158,12 @@ public class PointDescription {
return pnt.zone_number + "" + pnt.zone_letter + " " + ((long) pnt.easting) + " " return pnt.zone_number + "" + pnt.zone_letter + " " + ((long) pnt.easting) + " "
+ ((long) pnt.northing); + ((long) pnt.northing);
} else if (f == PointDescription.OLC_FORMAT) { } else if (f == PointDescription.OLC_FORMAT) {
try {
return getLocationOlcName(lat, lon); return getLocationOlcName(lat, lon);
} catch (RuntimeException e) {
e.printStackTrace();
return "0, 0";
}
} else { } else {
try { try {
return ctx.getString(sh ? R.string.short_location_on_map : R.string.location_on_map, LocationConvert.convert(lat, f), return ctx.getString(sh ? R.string.short_location_on_map : R.string.location_on_map, LocationConvert.convert(lat, f),