mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Properly pick cylinder use when merging dives
The cylinder use field was not merged when dives were merged. This is normally not noticeable, since hopefully the cylinder use should be the same anyway, but when re-downloading the dives from the EON Steel after updating it to also get cylinder use data, the dive merging threw the data away again since the original dive lacked it. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b2f2a865eb
commit
c27ad52be4
1 changed files with 2 additions and 0 deletions
|
@ -1864,6 +1864,8 @@ static void merge_cylinder_info(cylinder_t *src, cylinder_t *dst)
|
|||
merge_cylinder_mix(&src->gasmix, &dst->gasmix);
|
||||
MERGE_MAX(dst, dst, src, start.mbar);
|
||||
MERGE_MIN(dst, dst, src, end.mbar);
|
||||
if (!dst->cylinder_use)
|
||||
dst->cylinder_use = src->cylinder_use;
|
||||
}
|
||||
|
||||
static void merge_weightsystem_info(weightsystem_t *res, weightsystem_t *a, weightsystem_t *b)
|
||||
|
|
Loading…
Add table
Reference in a new issue