From: Keith Packard Date: Sun, 10 Mar 2013 04:37:38 +0000 (-0800) Subject: altosui: Add N/S and E/W to info table lat/lon values X-Git-Tag: altosdroid_v1.2-1~93 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=0803da851e2e061affc172fdde6301652d1be755 altosui: Add N/S and E/W to info table lat/lon values Signed-off-by: Keith Packard --- diff --git a/altosui/AltosInfoTable.java b/altosui/AltosInfoTable.java index c06f57ec..2facf38a 100644 --- a/altosui/AltosInfoTable.java +++ b/altosui/AltosInfoTable.java @@ -85,15 +85,15 @@ public class AltosInfoTable extends JTable { } void info_add_deg(int col, String name, double v, int pos, int neg) { - //int c = pos; + int c = pos; if (v < 0) { - //c = neg; + c = neg; v = -v; } double deg = Math.floor(v); double min = (v - deg) * 60; - info_add_row(col, name, String.format("%3.0f°%08.5f'", deg, min)); + info_add_row(col, name, String.format("%c %3.0f°%08.5f'", c, deg, min)); } void info_finish() {