X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2FApp.java;h=5073aa2a8a929d6fe9ce0fb181504f5a5d2346ff;hp=09fa510ec90327ec25a813a16829782b887154d4;hb=refs%2Fheads%2Fperso_changes2;hpb=f499af3454f9e4a3e14b436f7a06d26031bcd633 diff --git a/src/tim/prune/App.java b/src/tim/prune/App.java index 09fa510..5073aa2 100644 --- a/src/tim/prune/App.java +++ b/src/tim/prune/App.java @@ -456,6 +456,22 @@ public class App } + /** + * Remove altitudes from selected points + */ + public void removeAltitudes(int selStart, int selEnd) + { + UndoRemoveAltitudes undo = new UndoRemoveAltitudes(_trackInfo, selStart, selEnd); + if (_trackInfo.getTrack().removeAltitudes(selStart, selEnd)) + { + _undoStack.add(undo); + _trackInfo.getSelection().markInvalid(); + UpdateMessageBroker.informSubscribers(DataSubscriber.DATA_EDITED); + UpdateMessageBroker.informSubscribers(I18nManager.getText("confirm.removealtitudes")); + } + } + + /** * Merge the track segments within the current selection */