projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84e570d
)
AltosSiteMap: never accept 0,0 as lat/long
author
Anthony Towns
<aj@erisian.com.au>
Sun, 21 Nov 2010 05:03:21 +0000
(15:03 +1000)
committer
Anthony Towns
<aj@erisian.com.au>
Sun, 21 Nov 2010 05:03:21 +0000
(15:03 +1000)
ao-tools/altosui/AltosSiteMap.java
patch
|
blob
|
history
diff --git
a/ao-tools/altosui/AltosSiteMap.java
b/ao-tools/altosui/AltosSiteMap.java
index 5e34dd49477115b12514e80be42184feb5939124..0375128e1bfec7b014dcca63fea1b0f0395ede93 100644
(file)
--- a/
ao-tools/altosui/AltosSiteMap.java
+++ b/
ao-tools/altosui/AltosSiteMap.java
@@
-228,9
+228,9
@@
public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
// if insufficient gps data, nothing to update
if (state.gps == null)
return;
// if insufficient gps data, nothing to update
if (state.gps == null)
return;
+ if (state.pad_lat == 0 && state.pad_lon == 0)
+ return;
if (!state.gps.locked) {
if (!state.gps.locked) {
- if (state.pad_lat == 0 && state.pad_lon == 0)
- return;
if (state.gps.nsat < 4)
return;
}
if (state.gps.nsat < 4)
return;
}