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:
Tim Mayberry 2016-09-21 14:50:01 +10:00
parent 31a2957700
commit e157a84c2b

View File

@ -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()