projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84d35e4
)
altosui: Add N/S and E/W to info table lat/lon values
author
Keith Packard
<keithp@keithp.com>
Sun, 10 Mar 2013 04:37:38 +0000
(20:37 -0800)
committer
Keith Packard
<keithp@keithp.com>
Sun, 10 Mar 2013 04:37:38 +0000
(20:37 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosInfoTable.java
patch
|
blob
|
history
diff --git
a/altosui/AltosInfoTable.java
b/altosui/AltosInfoTable.java
index c06f57eca3f155281f6eb6a940cb74f6a8fee53b..2facf38ae21f76f95a6a9005804840f846eae321 100644
(file)
--- 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() {