mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Last added dive planner point for correct lenght not always added
Don't add the last stop with addstop for correcting the lenght of the dive if planner generated points can be removed when replanning. Otherwise this will not be deleted when replanning a dive. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
74a5511b39
commit
a19f9c22ce
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ void DivePlannerPointsModel::loadFromDive(dive *d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// make sure we get the last point right so the duration is correct
|
// make sure we get the last point right so the duration is correct
|
||||||
addStop(0, d->dc.duration.seconds,cylinderid, 0, true);
|
if (!hasMarkedSamples) addStop(0, d->dc.duration.seconds,cylinderid, 0, true);
|
||||||
recalc = oldRec;
|
recalc = oldRec;
|
||||||
emitDataChanged();
|
emitDataChanged();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue