diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index ee246e3ab..7e8279a0b 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -814,7 +814,7 @@ static void shiftTime(QDateTime &dateTime) timestamp_t when = dateTime.toTime_t(); if (current_dive && current_dive->when != when) { - timestamp_t offset = current_dive->when - when; + timestamp_t offset = when - current_dive->when; Command::shiftTime(dives, (int)offset); } } |