diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-09-15 20:54:40 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-16 08:36:59 -0700 |
commit | 58b7c6f8ef703009e098351774b8db521cce48e3 (patch) | |
tree | f8ec3c7c0b58961a7ae627ff7f15fbe9cab663f6 /qt-models | |
parent | dc0f0119200f78d1fc6eebb712ecec6f5687dfd5 (diff) | |
download | subsurface-58b7c6f8ef703009e098351774b8db521cce48e3.tar.gz |
Don't comput plan variations when not in the planner
Fixes #565
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index ee43468a7..6ff446a09 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -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); |