Skip to content

Commit

Permalink
Fix auto_hotcue_colors not assigning first color
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranpujolcamins authored and Holzhaus committed Feb 26, 2020
1 parent 9cc0681 commit 3b78714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/controls/cuecontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,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());
};
Expand Down

0 comments on commit 3b78714

Please sign in to comment.