Closed Jakoma02 closed 4 years ago
Hello @Jakoma02 You are totally right, thanks for letting me know. I'm fixing it ASAP and include it in tonight's release :)
@Jakoma02 the new version is uploaded and should be online soon, feel free to try it and let me know if it works as expected. Thanks
I close this issue since it is resolved
It seems to me that the
decimals()
method of a knob has no effect (as opposed to changing the number of displayed decimal places). The bug can be easily reproduced by using the method with any argument other than 2.I believe that the problem lies in the
PKnob
java class, where theformatString
is only used in the constructor to create aDecimalFormat
instancedf
that is later used when drawing the knob. As thedecimals()
method only changesformatString
,df
never gets updated and the change has no effect.Sorry if the mistake is on my side, I could have easily overlooked something.