X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2FApp.java;h=1bef98ba4497d932e331e03c4125ff73a34171c9;hp=3a778588ab815a7f30c4b396e4de9d2c266836da;hb=cba8e9495b9785fd22e30f41ddcf790e98901086;hpb=2302358503c38817e19f6e529f6c9e530aac0e86 diff --git a/src/tim/prune/App.java b/src/tim/prune/App.java index 3a77858..1bef98b 100644 --- a/src/tim/prune/App.java +++ b/src/tim/prune/App.java @@ -454,6 +454,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 */