diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-12-20 19:03:44 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2018-12-21 08:08:02 +0100 |
commit | 73213d3c79a566ccc3ec4ce5a3201b6b18ace1b3 (patch) | |
tree | bdcf82ba7559ffea1a37272239e1ba5cdb672579 | |
parent | 9f417cacaad598e75d8b0e17e238819703798956 (diff) | |
download | subsurface-73213d3c79a566ccc3ec4ce5a3201b6b18ace1b3.tar.gz |
core: shift dive time in correct direction
Unsure where this bug got introduced, but when asking for the dive
time to be shifted 1 hour later, the divelist and the dive details
showed 1 our earlier.
Fixes: #1893
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r-- | desktop-widgets/command_divelist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp index 5fb52a809..b85b9a65f 100644 --- a/desktop-widgets/command_divelist.cpp +++ b/desktop-widgets/command_divelist.cpp @@ -600,7 +600,7 @@ ShiftTime::ShiftTime(const QVector<dive *> &changedDives, int amount) void ShiftTime::redoit() { for (dive *d: diveList) - d->when -= timeChanged; + d->when += timeChanged; // Changing times may have unsorted the dive table sort_table(&dive_table); |