1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00
This commit is contained in:
jules 2007-08-28 08:45:48 +00:00
parent 29421641be
commit 06f7cced2d

View file

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