mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 03:45:56 +01:00
Prevent a possible divide-by-zero error when generating the moodbar
This commit is contained in:
parent
00e69c341e
commit
72ba6b34a6
@ -70,6 +70,8 @@ ColorVector MoodbarRenderer::Colors(
|
||||
}
|
||||
}
|
||||
|
||||
total = qMax(total, 1);
|
||||
|
||||
// Remap the hue values to be between rangeStart and
|
||||
// rangeStart + rangeDelta. Every time we see an input hue
|
||||
// above the threshold, increment the output hue by
|
||||
|
Loading…
Reference in New Issue
Block a user