X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fundo%2FUndoAddTimeOffset.java;fp=tim%2Fprune%2Fundo%2FUndoAddTimeOffset.java;h=0a50699853a8ec3d4a3736b1c0bede9223be05a4;hp=5238213f21c7739d43f5f0aa04dc9001554c6977;hb=92dad5df664287acb51728e9ea599f150765d34a;hpb=81843c3d8d0771bf00d0f26034a13aa515465c78 diff --git a/tim/prune/undo/UndoAddTimeOffset.java b/tim/prune/undo/UndoAddTimeOffset.java index 5238213..0a50699 100644 --- a/tim/prune/undo/UndoAddTimeOffset.java +++ b/tim/prune/undo/UndoAddTimeOffset.java @@ -11,7 +11,7 @@ public class UndoAddTimeOffset implements UndoOperation { /** Start and end indices of section */ private int _startIndex, _endIndex; - /** time offset */ + /** time offset in seconds */ private long _timeOffset; @@ -19,7 +19,7 @@ public class UndoAddTimeOffset implements UndoOperation * Constructor * @param inStart start index of section * @param inEnd end index of section - * @param inOffset time offset + * @param inOffset time offset in seconds */ public UndoAddTimeOffset(int inStart, int inEnd, long inOffset) { @@ -45,7 +45,7 @@ public class UndoAddTimeOffset implements UndoOperation public void performUndo(TrackInfo inTrackInfo) throws UndoException { // Perform the inverse operation - inTrackInfo.getTrack().addTimeOffset(_startIndex, _endIndex, -_timeOffset, true); + inTrackInfo.getTrack().addTimeOffsetSeconds(_startIndex, _endIndex, -_timeOffset, true); UpdateMessageBroker.informSubscribers(); } }