]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/undo/UndoAddTimeOffset.java
Version 19, May 2018
[GpsPrune.git] / tim / prune / undo / UndoAddTimeOffset.java
index 5238213f21c7739d43f5f0aa04dc9001554c6977..0a50699853a8ec3d4a3736b1c0bede9223be05a4 100644 (file)
@@ -11,7 +11,7 @@ public class UndoAddTimeOffset implements UndoOperation
 {
        /** Start and end indices of section */
        private int _startIndex, _endIndex;
 {
        /** Start and end indices of section */
        private int _startIndex, _endIndex;
-       /** time offset */
+       /** time offset in seconds */
        private long _timeOffset;
 
 
        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
         * 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)
        {
         */
        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
        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();
        }
 }
                UpdateMessageBroker.informSubscribers();
        }
 }