profile: fix typo in color generating code

HSL and HSV are different things...

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Berthold Stoeger 2022-03-13 20:38:09 +01:00 committed by Dirk Hohndel
parent 32d042e73e
commit 02ea3d59f6

View file

@ -55,9 +55,9 @@ static std::array<int, num_tissues> 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();
}