From f557dd12947a5b137f4e4516b92fe99e56cbc4e2 Mon Sep 17 00:00:00 2001 From: Ferran Pujol Camins Date: Sun, 17 Nov 2019 12:54:39 +0100 Subject: [PATCH] Fix auto_hotcue_colors not assigning first color --- src/engine/controls/cuecontrol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/controls/cuecontrol.cpp b/src/engine/controls/cuecontrol.cpp index 312ba3f32233..12a3d3659762 100644 --- a/src/engine/controls/cuecontrol.cpp +++ b/src/engine/controls/cuecontrol.cpp @@ -587,7 +587,7 @@ void CueControl::hotcueSet(HotcueControl* pControl, double v) { ConfigKey autoHotcueColorsKey("[Controls]", "auto_hotcue_colors"); if (getConfig()->getValue(autoHotcueColorsKey, false)) { auto colors = hotcueColorPalette.m_colorList; - pCue->setColor(colors.at((hotcue % (colors.count() - 1)) + 1)); + pCue->setColor(colors.at(hotcue % colors.count())); } else { pCue->setColor(hotcueColorPalette.m_colorList.first()); };