mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Use PBD::to_string from pbd/string_convert.h in MeterStrip class
The numeric formatting is equivalent. The string is being used in a label so it could be argued that we want localized numeric formatting in this case, but as it is only relevant if we have >=1000 meter strip keep it the same for now.
This commit is contained in:
parent
31a2957700
commit
e157a84c2b
1 changed files with 1 additions and 1 deletions
|
|
@ -804,7 +804,7 @@ MeterStrip::name_changed () {
|
|||
number_label.set_text("-");
|
||||
number_label.hide();
|
||||
} else {
|
||||
number_label.set_text (PBD::to_string (track_number, std::dec));
|
||||
number_label.set_text (PBD::to_string (track_number));
|
||||
number_label.show();
|
||||
}
|
||||
const int tnh = 4 + std::max(2u, _session->track_number_decimals()) * 8; // TODO 8 = max_width_of_digit_0_to_9()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue