altoslib: Check for valid pad alt before computing GPS height series
[fw/altos] / altosuilib / AltosUISeries.java
index 3a1dde03c73c24a76367c5210085f3a2824a9b6d..aa598bac109b6b89e6f2578244c71cbb1fc51c05 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -75,6 +76,8 @@ public class AltosUISeries extends XYSeries implements AltosUIGrapher {
                renderer.setBaseToolTipGenerator(ttg);
        }
 
+       public boolean need_reset() { return true; }
+
        public void set_enable(boolean enable) {
                if (this.enable != enable) {
                        this.enable = enable;