mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: only copy cylinders that were used in the template dive
This was only semi-implemented the first time around. Now we really only copy the ones that are indeed used. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
88f3991260
commit
5bc5cae6dc
4 changed files with 12 additions and 9 deletions
2
dive.h
2
dive.h
|
@ -605,7 +605,7 @@ extern struct dive *merge_dives(struct dive *a, struct dive *b, int offset, bool
|
|||
extern struct dive *try_to_merge(struct dive *a, struct dive *b, bool prefer_downloaded);
|
||||
extern void renumber_dives(int start_nr, bool selected_only);
|
||||
extern void copy_events(struct dive *s, struct dive *d);
|
||||
extern void copy_cylinders(struct dive *s, struct dive *d);
|
||||
extern void copy_cylinders(struct dive *s, struct dive *d, bool used_only);
|
||||
extern void copy_samples(struct dive *s, struct dive *d);
|
||||
extern bool cylinder_is_used(struct dive *d, cylinder_t *cyl);
|
||||
extern void fill_default_cylinder(cylinder_t *cyl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue