From 19a6a282a2b62190e982301ffade47b28384bfff Mon Sep 17 00:00:00 2001 From: jules Date: Sat, 7 Dec 2013 16:40:56 +0000 Subject: [PATCH] Slider behaviour fix. --- modules/juce_gui_basics/widgets/juce_Slider.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/widgets/juce_Slider.cpp b/modules/juce_gui_basics/widgets/juce_Slider.cpp index 29c15db45e..128d19e4ec 100644 --- a/modules/juce_gui_basics/widgets/juce_Slider.cpp +++ b/modules/juce_gui_basics/widgets/juce_Slider.cpp @@ -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