1
0
Fork 0
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:
Tom Poole 2018-04-16 09:56:48 +01:00
parent 3af838b377
commit df6f60f2e0

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;