mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Duration of a dive is the maximum duration from all divecomputers
So far we always used the duration of the first divecomputer. The same fix needs to be done for some of the other calculations that always use the first divecomputer. This commit also removes some obsolete code from the webservice merging. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5692131a79
commit
9846ba9e94
5 changed files with 48 additions and 43 deletions
2
dive.h
2
dive.h
|
@ -530,7 +530,7 @@ extern void report_dives(gboolean imported, gboolean prefer_imported);
|
|||
extern struct dive *fixup_dive(struct dive *dive);
|
||||
extern struct dive *merge_dives(struct dive *a, struct dive *b, int offset, gboolean prefer_downloaded);
|
||||
extern struct dive *try_to_merge(struct dive *a, struct dive *b, gboolean prefer_downloaded);
|
||||
|
||||
extern int get_duration_in_sec(struct dive *dive);
|
||||
extern void renumber_dives(int nr);
|
||||
|
||||
extern void add_gas_switch_event(struct dive *dive, struct divecomputer *dc, int time, int idx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue