This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
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
3af838b377
commit
df6f60f2e0
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
Cancel
Save