Fix if condition

This commit is contained in:
Maxime Gimeno 2019-05-02 09:19:28 +02:00
parent d73e677fc6
commit 5cebf8b8df
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
inline QColor generate_color(double h, double s_min = 0.35)
{
std::size_t s_max=255;
if(h >0.8 && h < 0,95) //span of ugly pink, desaturates make it less garish IMO
if(h >0.8 && h < 0.95) //span of ugly pink, desaturates make it less garish IMO
s_max = 160;
std::size_t s = std::rand() % (s_max-static_cast<std::size_t>(s_min*255)) +s_min*255;
return QColor::fromHsvF(h,s/255.0,1.0);