mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
parent
dab2b3cc43
commit
2217946810
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue