aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/diveprofileitem.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-08 23:55:20 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commit9bfc6d2520b83b8151a84e23cbab082ab460532e (patch)
tree246d0cf6ed87b1a6dde850ff3633431752d675ff /profile-widget/diveprofileitem.cpp
parent94a57d9a1d9b1d1eeb89b1ccbba27f4b677ff6ed (diff)
downloadsubsurface-9bfc6d2520b83b8151a84e23cbab082ab460532e.tar.gz
profile: use a parameter to determine planner state
The in_planner() function is incompatible with a reentrant profile, since it accesses a global variable. In create_plot_info_new() it is essentially redundant, because there is a planner_ds (ds = deco_state) parameter that is used only when in the planner. Therefore use that as the in_planner indicator: when non-null, the profile is showing a planned dive. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/diveprofileitem.cpp')
0 files changed, 0 insertions, 0 deletions