From 8b5812bc2c99fc603a59bf4d3fd6c776dc418db2 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 9 Mar 2024 18:37:02 +0100 Subject: [PATCH] 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 --- profile-widget/divepercentageitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile-widget/divepercentageitem.cpp b/profile-widget/divepercentageitem.cpp index 9c3db3d4d..8ddfaf6fd 100644 --- a/profile-widget/divepercentageitem.cpp +++ b/profile-widget/divepercentageitem.cpp @@ -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)