mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
profile: fix uninitialized variable in DivePercentageItem
Fix bug introduced in 505e4e47eb
.
Nobody complained, so not clear if that was user visible.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
cf990b0f39
commit
8b5812bc2c
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ void DivePercentageItem::replot(const dive *d, const struct divecomputer *dc, co
|
|||
continue;
|
||||
|
||||
double value = item.percentages[tissue];
|
||||
struct gasmix gasmix = get_gasmix(d, dc, sec, &ev, gasmix);
|
||||
struct gasmix gasmix = get_gasmix(d, dc, sec, &ev, gasmix_air);
|
||||
int inert = get_n2(gasmix) + get_he(gasmix);
|
||||
color = colorScale(value, inert);
|
||||
if (nextX >= width)
|
||||
|
|
Loading…
Reference in a new issue