X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2FApp.java;h=54f1e98632c19ef76c7fa6af0d168bf02a763d1f;hp=2e7594178ae2b379eccffd2d3cf41bb9f6494e61;hb=a31ee8e107fd7ea6413c1a998072da3c3cfcc3b7;hpb=c92988b0ef22680b27cf0b10898df1e3a70710ea diff --git a/src/tim/prune/App.java b/src/tim/prune/App.java index 2e75941..54f1e98 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 */