diff --git a/src/juce_appframework/gui/components/controls/juce_Slider.cpp b/src/juce_appframework/gui/components/controls/juce_Slider.cpp index c21f1e6d27..2c60c175ab 100644 --- a/src/juce_appframework/gui/components/controls/juce_Slider.cpp +++ b/src/juce_appframework/gui/components/controls/juce_Slider.cpp @@ -416,7 +416,7 @@ double Slider::getValue() const throw() { // for a two-value style slider, you should use the getMinValue() and getMaxValue() // methods to get the two values. - jassert (style != TwoValueHorizontal || style != TwoValueVertical); + jassert (style != TwoValueHorizontal && style != TwoValueVertical); return currentValue; } @@ -427,7 +427,7 @@ void Slider::setValue (double newValue, { // for a two-value style slider, you should use the setMinValue() and setMaxValue() // methods to set the two values. - jassert (style != TwoValueHorizontal || style != TwoValueVertical); + jassert (style != TwoValueHorizontal && style != TwoValueVertical); newValue = constrainedValue (newValue);