mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed a bug calculating the number of decimal places displayed in a slider
This commit is contained in:
parent
3af838b377
commit
df6f60f2e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue