mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 00:29:41 +02:00
Fix roundoff bug in NumericTextCtrl
This commit is contained in:
parent
1d311651e8
commit
08d63aa361
@ -841,7 +841,10 @@ void NumericConverter::ValueToControls(double rawValue, bool nearest /* = true *
|
||||
floor(rawValue * mSampleRate + (nearest ? 0.5f : 0.0f))
|
||||
/ mSampleRate; // put on a sample
|
||||
double theValue =
|
||||
rawValue * mScalingFactor + .000001; // what's this .000001 for? // well, no log of 0
|
||||
rawValue * mScalingFactor
|
||||
// PRL: what WAS this .000001 for? Nobody could explain.
|
||||
// + .000001
|
||||
;
|
||||
sampleCount t_int;
|
||||
bool round = true;
|
||||
// We round on the last field. If we have a fractional field we round using it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user