mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Don't comput plan variations when not in the planner
Fixes #565 Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
dc0f011920
commit
58b7c6f8ef
1 changed files with 2 additions and 0 deletions
|
@ -934,6 +934,8 @@ void DivePlannerPointsModel::computeVariations()
|
|||
struct diveplan plan_copy;
|
||||
struct divedatapoint *last_segment;
|
||||
|
||||
if(!in_planner())
|
||||
return;
|
||||
cache_deco_state(&save);
|
||||
cloneDiveplan(&plan_copy);
|
||||
plan(&plan_copy, dive, 1, original, &cache, true, false);
|
||||
|
|
Loading…
Reference in a new issue