From 31a2957700be383dd99bb82143bce6505bd4eccc Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 21 Sep 2016 14:42:13 +1000 Subject: [PATCH] Use PBD::to_string from pbd/string_convert.h in ExportTimespanSelector The C++ global locale is currently set to LC_NUMERIC=C by the first instance of LocaleGuard so this change means numeric formatting is equivalent. As the string is being used to construct a label, perhaps we do want to generate localized numeric formatting in this case. Anyway keep it the same for now. --- gtk2_ardour/export_timespan_selector.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/export_timespan_selector.cc b/gtk2_ardour/export_timespan_selector.cc index c87d4ef9e4..0d815f42ee 100644 --- a/gtk2_ardour/export_timespan_selector.cc +++ b/gtk2_ardour/export_timespan_selector.cc @@ -27,7 +27,7 @@ #include "ardour/export_timespan.h" #include "pbd/enumwriter.h" -#include "pbd/convert.h" +#include "pbd/string_convert.h" #include #include @@ -241,8 +241,8 @@ ExportTimespanSelector::construct_label (ARDOUR::Location const * location) cons break; case AudioClock::Frames: - start = to_string (start_frame, std::dec); - end = to_string (end_frame, std::dec); + start = to_string (start_frame); + end = to_string (end_frame); break; }