summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-09 20:37:38 -0800
committerKeith Packard <keithp@keithp.com>2013-03-09 20:37:38 -0800
commit0803da851e2e061affc172fdde6301652d1be755 (patch)
tree69e233313fc4cad59453e870d87d40320c89300a
parent84d35e4cbd7ea2f681c43496b9b9db84f9dd923f (diff)
altosui: Add N/S and E/W to info table lat/lon values
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosui/AltosInfoTable.java6
1 files changed, 3 insertions, 3 deletions
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() {