1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Slider behaviour fix.

This commit is contained in:
jules 2013-12-07 16:40:56 +00:00
parent fc24a63ed1
commit 19a6a282a2

View file

@ -408,7 +408,12 @@ public:
void updateText()
{
if (valueBox != nullptr)
valueBox->setText (owner.getTextFromValue (currentValue.getValue()), dontSendNotification);
{
String newValue (owner.getTextFromValue (currentValue.getValue()));
if (newValue != valueBox->getText())
valueBox->setText (newValue, dontSendNotification);
}
}
double constrainedValue (double value) const