mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Fill the list of weightsystems from data in existing dives
This was simply an omission in the current implementation. All the plumbing was there but never got hooked up with the fixup_dive function as intended. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4912951e97
commit
39f606350b
2 changed files with 5 additions and 0 deletions
4
dive.c
4
dive.c
|
@ -472,6 +472,10 @@ struct dive *fixup_dive(struct dive *dive)
|
|||
if (same_rounded_pressure(cyl->sample_end, cyl->end))
|
||||
cyl->end.mbar = 0;
|
||||
}
|
||||
for (i = 0; i < MAX_WEIGHTSYSTEMS; i++) {
|
||||
weightsystem_t *ws = dive->weightsystem + i;
|
||||
add_weightsystem_description(ws);
|
||||
}
|
||||
|
||||
return dive;
|
||||
}
|
||||
|
|
1
dive.h
1
dive.h
|
@ -338,6 +338,7 @@ extern void exit_ui(void);
|
|||
extern void report_error(GError* error);
|
||||
|
||||
extern void add_cylinder_description(cylinder_type_t *);
|
||||
extern void add_weightsystem_description(weightsystem_t *);
|
||||
extern void add_people(const char *string);
|
||||
extern void add_location(const char *string);
|
||||
extern void remember_event(const char *eventname);
|
||||
|
|
Loading…
Reference in a new issue