mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
This commit is contained in:
parent
29421641be
commit
06f7cced2d
1 changed files with 11 additions and 1 deletions
|
|
@ -398,7 +398,17 @@ void Slider::setRange (const double newMin,
|
|||
}
|
||||
}
|
||||
|
||||
setValue (currentValue, false, false);
|
||||
// keep the current values inside the new range..
|
||||
if (style != TwoValueHorizontal && style != TwoValueVertical)
|
||||
{
|
||||
setValue (currentValue, false, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
setMinValue (getMinValue(), false, false);
|
||||
setMaxValue (getMaxValue(), false, false);
|
||||
}
|
||||
|
||||
updateText();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue