From 02ea3d59f6fab67c916cb2801e5d2445ea2b1631 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 13 Mar 2022 20:38:09 +0100 Subject: [PATCH] profile: fix typo in color generating code HSL and HSV are different things... Signed-off-by: Berthold Stoeger Signed-off-by: Dirk Hohndel --- profile-widget/divepercentageitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profile-widget/divepercentageitem.cpp b/profile-widget/divepercentageitem.cpp index 5b2d83474..9c3db3d4d 100644 --- a/profile-widget/divepercentageitem.cpp +++ b/profile-widget/divepercentageitem.cpp @@ -55,9 +55,9 @@ static std::array calcLinesPerTissue(int size) static inline QRgb hsv2rgb(double h, double s, double v) { #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) // they are just trolling us with these changes - QColor c = QColor::fromHslF((float)h, (float)s, (float)v); + QColor c = QColor::fromHsvF((float)h, (float)s, (float)v); #else - QColor c = QColor::fromHslF(h, s, v); + QColor c = QColor::fromHsvF(h, s, v); #endif return c.rgba(); }