Skip to content

Commit

Permalink
Missing change in previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Feb 5, 2025
1 parent e6753d7 commit b1c76ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion architecture/faust/gui/JuceGUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ class uiMenu : public uiComponent, private juce::ComboBox::Listener
void comboBoxChanged (juce::ComboBox* cb) override
{
// -1 because of the starting item at 1 at the initialization, and protect against out of range access.
modifyZone(fValues[cb->getSelectedId() - 1]);
modifyZone(fValues[std::max(0, cb->getSelectedId() - 1]));
}

virtual void reflectZone() override
Expand Down

0 comments on commit b1c76ea

Please sign in to comment.