Howdy,
Slider::setRotaryParameters (https://github.com/julianstorer/JUCE/blob/master/modules/juce_gui_basics/widgets/juce_Slider.cpp#L466) looks like this:
void setRotaryParameters (const float startAngleRadians, const float endAngleRadians, const bool stopAtEnd) { // make sure the values are sensible.. jassert (rotaryStart >= 0 && rotaryEnd >= 0); jassert (rotaryStart < float_Pi * 4.0f && rotaryEnd < float_Pi * 4.0f); jassert (rotaryStart < rotaryEnd); rotaryStart = startAngleRadians; rotaryEnd = endAngleRadians; rotaryStop = stopAtEnd; }
It looks like the assertions validate the old values rather than the new values, and would only fire if someone sets bad values and then sets values again.. Would probably make more sense to move the assertions to the end.
Cheers, Yair