Use PBD::to_string from pbd/string_convert.h in ExportTimespanSelector
authorTim Mayberry <mojofunk@gmail.com>
Wed, 21 Sep 2016 04:42:13 +0000 (14:42 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:37:01 +0000 (09:37 +1000)
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

index c87d4ef9e4c2eb29ab01f780bfcb8bae743fc647..0d815f42ee864b954a2639bd44be2d0119a5735b 100644 (file)
@@ -27,7 +27,7 @@
 #include "ardour/export_timespan.h"
 
 #include "pbd/enumwriter.h"
-#include "pbd/convert.h"
+#include "pbd/string_convert.h"
 
 #include <sstream>
 #include <iomanip>
@@ -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;
        }