mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Plan: introduce function that returns disclaimer
The setting of the disclaimer variable was removed inadvertently some time ago, which removed the disclaimer from the printed plan. Instead, introduce a function that returns the disclaimer with the current deco mode. Use that function to generate the dive notes and for printing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4706b0f11a
commit
ee365b7341
3 changed files with 21 additions and 12 deletions
|
|
@ -51,6 +51,7 @@ extern int get_gasidx(struct dive *dive, struct gasmix mix);
|
|||
extern bool diveplan_empty(struct diveplan *diveplan);
|
||||
extern void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_disclaimer, int error);
|
||||
extern const char *get_planner_disclaimer();
|
||||
extern char *get_planner_disclaimer_formatted();
|
||||
|
||||
extern void free_dps(struct diveplan *diveplan);
|
||||
extern struct dive *planned_dive;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue