X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2Fdata%2FDataPoint.java;h=01e9975786139a1736653d68dd1fd747109b3788;hp=84f4800bcd2c0a0d546da8a83a87868810bf3a54;hb=refs%2Fheads%2Fperso_changes2;hpb=f499af3454f9e4a3e14b436f7a06d26031bcd633 diff --git a/src/tim/prune/data/DataPoint.java b/src/tim/prune/data/DataPoint.java index 84f4800..01e9975 100644 --- a/src/tim/prune/data/DataPoint.java +++ b/src/tim/prune/data/DataPoint.java @@ -354,6 +354,16 @@ public class DataPoint } } + /** + * Remove altitude from point + */ + public void removeAltitude() + { + _altitude = Altitude.NONE; + _fieldValues[_fieldList.getFieldIndex(Field.ALTITUDE)] = _altitude.getStringValue(null); + setModified(false); + } + /** * Reset the altitude to the previous value (by an undo) * @param inClone altitude object cloned from earlier