mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9f417cacaa
commit
73213d3c79
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue