diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-26 13:23:52 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-26 13:23:52 -0700 |
commit | 42c54e7b7e202edcc6a568c4e91f1e973af0e208 (patch) | |
tree | 0f34c598da7d72a7acd893d74b4f01ca30b381a0 /qt-ui/diveplanner.cpp | |
parent | 660235c9b7cc719f3ba11c2eecceec18fab3cb54 (diff) | |
download | subsurface-42c54e7b7e202edcc6a568c4e91f1e973af0e208.tar.gz |
Planner: copy samples and events for plan and add
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index a7f97ebe2..9edaac56a 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -776,7 +776,7 @@ void DivePlannerPointsModel::createTemporaryPlan() #endif if (plannerModel->recalcQ()) plan(&diveplan, &cache, &tempDive, isPlanner()); - if (mode == ADD) { + if (mode == ADD || mode == PLAN) { // copy the samples and events, but don't overwrite the cylinders copy_samples(tempDive, current_dive); copy_events(tempDive, current_dive); |