altosui: Add N/S and E/W to info table lat/lon values
authorKeith Packard <keithp@keithp.com>
Sun, 10 Mar 2013 04:37:38 +0000 (20:37 -0800)
committerKeith 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

index c06f57eca3f155281f6eb6a940cb74f6a8fee53b..2facf38ae21f76f95a6a9005804840f846eae321 100644 (file)
@@ -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() {