summaryrefslogtreecommitdiff
path: root/src/wx/video_waveform_plot.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-11 02:12:46 +0200
committerCarl Hetherington <cth@carlh.net>2025-05-11 13:12:21 +0200
commit08c59d5232072f604e15216bd1abc29e7b7576be (patch)
tree7b81ab2b399dc9c5de656767a3c4cd8c5816a43e /src/wx/video_waveform_plot.cc
parent2910224db701d1e5328ffa9685de953135ab3d6f (diff)
Use wxNumberFormatter instead of locale_convert.
Diffstat (limited to 'src/wx/video_waveform_plot.cc')
-rw-r--r--src/wx/video_waveform_plot.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/video_waveform_plot.cc b/src/wx/video_waveform_plot.cc
index 2827689a7..f5c1c80c1 100644
--- a/src/wx/video_waveform_plot.cc
+++ b/src/wx/video_waveform_plot.cc
@@ -26,11 +26,11 @@
#include "lib/film.h"
#include "lib/image.h"
#include "lib/player_video.h"
-#include <dcp/locale_convert.h>
#include <dcp/openjpeg_image.h>
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <wx/graphics.h>
+#include <wx/numformatter.h>
#include <wx/rawbmp.h>
LIBDCP_ENABLE_WARNINGS
#include <boost/bind/bind.hpp>
@@ -45,7 +45,6 @@ using std::weak_ptr;
#if BOOST_VERSION >= 106100
using namespace boost::placeholders;
#endif
-using dcp::locale_convert;
int const VideoWaveformPlot::_vertical_margin = 8;
@@ -132,7 +131,7 @@ VideoWaveformPlot::paint ()
} else if (n < 1000) {
x += extra[2];
}
- gc->DrawText (std_to_wx(locale_convert<string>(n)), x, y - (label_height / 2));
+ gc->DrawText(wxNumberFormatter::ToString(static_cast<long>(n)), x, y - (label_height / 2));
}
wxImage waveform (_waveform->size().width, height, _waveform->data()[0], true);