Browse Source

Fixed a bug calculating the number of decimal places displayed in a slider

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
df6f60f2e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/widgets/juce_Slider.cpp

+ 1
- 1
modules/juce_gui_basics/widgets/juce_Slider.cpp View File

@@ -113,7 +113,7 @@ public:
{
int v = std::abs (roundToInt (normRange.interval * 10000000));
while ((v % 10) == 0)
while ((v % 10) == 0 && numDecimalPlaces > 0)
{
--numDecimalPlaces;
v /= 10;


Loading…
Cancel
Save