mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: copy samples and events for plan and add
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
660235c9b7
commit
42c54e7b7e
1 changed files with 1 additions and 1 deletions
|
@ -776,7 +776,7 @@ void DivePlannerPointsModel::createTemporaryPlan()
|
||||||
#endif
|
#endif
|
||||||
if (plannerModel->recalcQ())
|
if (plannerModel->recalcQ())
|
||||||
plan(&diveplan, &cache, &tempDive, isPlanner());
|
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 the samples and events, but don't overwrite the cylinders
|
||||||
copy_samples(tempDive, current_dive);
|
copy_samples(tempDive, current_dive);
|
||||||
copy_events(tempDive, current_dive);
|
copy_events(tempDive, current_dive);
|
||||||
|
|
Loading…
Add table
Reference in a new issue