diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-04-16 11:24:41 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-16 07:40:45 -0700 |
commit | a19f9c22ce9709fae6aa88ddb27a0cf42a820c46 (patch) | |
tree | 93cbda7063d134d0dd5d4db59d7b9178b534d90c | |
parent | 74a5511b391ebf8120ba84c37b27a3a0cc6934a3 (diff) | |
download | subsurface-a19f9c22ce9709fae6aa88ddb27a0cf42a820c46.tar.gz |
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>
-rw-r--r-- | qt-models/diveplannermodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index bd90e4dfb..35f696c01 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -119,7 +119,7 @@ void DivePlannerPointsModel::loadFromDive(dive *d) } } // 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; emitDataChanged(); } |