Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
2217946810
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/juce_appframework/gui/components/controls/juce_Slider.cpp

+ 2
- 2
src/juce_appframework/gui/components/controls/juce_Slider.cpp View File

@@ -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);


Loading…
Cancel
Save