1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
jules 2007-06-29 10:01:26 +00:00
parent dab2b3cc43
commit 2217946810

View file

@ -416,7 +416,7 @@ double Slider::getValue() const throw()
{ {
// for a two-value style slider, you should use the getMinValue() and getMaxValue() // for a two-value style slider, you should use the getMinValue() and getMaxValue()
// methods to get the two values. // methods to get the two values.
jassert (style != TwoValueHorizontal || style != TwoValueVertical); jassert (style != TwoValueHorizontal && style != TwoValueVertical);
return currentValue; return currentValue;
} }
@ -427,7 +427,7 @@ void Slider::setValue (double newValue,
{ {
// for a two-value style slider, you should use the setMinValue() and setMaxValue() // for a two-value style slider, you should use the setMinValue() and setMaxValue()
// methods to set the two values. // methods to set the two values.
jassert (style != TwoValueHorizontal || style != TwoValueVertical); jassert (style != TwoValueHorizontal && style != TwoValueVertical);
newValue = constrainedValue (newValue); newValue = constrainedValue (newValue);