1
0
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:
David Sansome 2012-06-04 21:19:11 +01:00
parent 00e69c341e
commit 72ba6b34a6

View File

@ -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