Closed Xunie closed 4 years ago
Thanks for the report and patch, I can't believe no-one's spotted this after all these years!
The same bad formatting occured in the top-right too, as you hover the mouse.
Fixed in 822cd0ac46f35ab866379b9d754403879ade5b80.
Milkytracker version: 1.02.00 on both Windows and Linux
The sample editor's time indicator (in the bottom right) incorrectly formats 'human readable' time formats:
2.068
displays as2.68
2.009
displays as2.9
This happens because
SampleEditorControl::formatMillis()
insrc/tracker/SampleEditorControl.cpp
has multiplesprintf()
calls with incorrect format string. It should not discard leading zeros: https://github.com/milkytracker/MilkyTracker/blob/119b9d7e35fcea8d891608f54e38d9d55412e4ea/src/tracker/SampleEditorControl.cpp#L276-L293