diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-08-27 22:49:41 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-08-29 06:49:44 -0700 |
commit | e6545a7b0f262d9185a43054f945aa0bc068ac37 (patch) | |
tree | b0602a5ed577fc1569c9f87ec4afeb7538c1598b /qt-models | |
parent | 456e2cec89bf53904851cce2bad7f344c64c6f98 (diff) | |
download | subsurface-e6545a7b0f262d9185a43054f945aa0bc068ac37.tar.gz |
Store a table of deco stops in planner
... in addition to struct diveplan which combines all kinds
of information
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index a997c08a1..473076586 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -842,7 +842,8 @@ void DivePlannerPointsModel::createTemporaryPlan() dump_plan(&diveplan); #endif if (recalcQ() && !diveplan_empty(&diveplan)) { - plan(&diveplan, &displayed_dive, DECOTIMESTEP, &cache, isPlanner(), false); + struct decostop stoptable[60]; + plan(&diveplan, &displayed_dive, DECOTIMESTEP, stoptable, &cache, isPlanner(), false); emit calculatedPlanNotes(); } // throw away the cache @@ -878,7 +879,8 @@ void DivePlannerPointsModel::createPlan(bool replanCopy) setRecalc(oldRecalc); //TODO: C-based function here? - plan(&diveplan, &displayed_dive, DECOTIMESTEP, &cache, isPlanner(), true); + struct decostop stoptable[60]; + plan(&diveplan, &displayed_dive, DECOTIMESTEP, stoptable, &cache, isPlanner(), true); free(cache); if (!current_dive || displayed_dive.id != current_dive->id) { // we were planning a new dive, not re-planning an existing on |