diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-09 18:11:56 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | 54e8fe5d9e588c3345ded27982edaf72654fc8d1 (patch) | |
tree | 14460c74f1a9bf9cdd228a933fac509bf39043a2 /core/profile.h | |
parent | 193513a61fc7fcfb31c1cb969f7fe05452abd67c (diff) | |
download | subsurface-54e8fe5d9e588c3345ded27982edaf72654fc8d1.tar.gz |
profile: pass dive to ToolTipItem::refresh()
Don't access the global displayed_dive variable in a step
to make the profile reentrant.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/profile.h')
-rw-r--r-- | core/profile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/profile.h b/core/profile.h index 6aa71e714..725bbae18 100644 --- a/core/profile.h +++ b/core/profile.h @@ -84,7 +84,7 @@ extern void compare_samples(struct plot_info *p1, int idx1, int idx2, char *buf, extern void init_plot_info(struct plot_info *pi); /* when planner_dc is non-null, this is called in planner mode. */ extern void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, bool fast, const struct deco_state *planner_ds); -extern int get_plot_details_new(const struct plot_info *pi, int time, struct membuffer *); +extern int get_plot_details_new(const struct dive *d, const struct plot_info *pi, int time, struct membuffer *); extern void free_plot_info_data(struct plot_info *pi); /* |