From 42c54e7b7e202edcc6a568c4e91f1e973af0e208 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 26 May 2014 13:23:52 -0700 Subject: Planner: copy samples and events for plan and add Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2