summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-13 23:34:59 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-13 23:57:59 +0200
commit45923ef4c7bbd0454c58887770c437e1f2232e31 (patch)
tree7887cdd98c8cb0c4e468b054676458f6b7c01bb4 /src/wx
parent5f309293d076c20383101976af9c7a3d47726458 (diff)
Fix incorrect use of raw_convert (should be locale_convert).
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/custom_scale_dialog.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/custom_scale_dialog.cc b/src/wx/custom_scale_dialog.cc
index 4e7b70f88..bcdd0791f 100644
--- a/src/wx/custom_scale_dialog.cc
+++ b/src/wx/custom_scale_dialog.cc
@@ -22,7 +22,7 @@
#include "custom_scale_dialog.h"
#include "wx_util.h"
#include "lib/util.h"
-#include <dcp/raw_convert.h>
+#include <dcp/locale_convert.h>
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <wx/propgrid/property.h>
@@ -98,7 +98,7 @@ CustomScaleDialog::CustomScaleDialog(wxWindow* parent, dcp::Size initial, dcp::S
void
CustomScaleDialog::update_size_from_ratio()
{
- dcp::Size const s = fit_ratio_within(raw_convert<float>(wx_to_std(_ratio->GetValue())), _film_container);
+ auto const s = fit_ratio_within(locale_convert<float>(wx_to_std(_ratio->GetValue())), _film_container);
_size_from_ratio->SetLabelMarkup(wxString::Format(char_to_wx("<i>%dx%d</i>"), s.width, s.height));
}
@@ -129,7 +129,7 @@ CustomScaleDialog::custom_ratio() const
return optional<float>();
}
- return raw_convert<float>(wx_to_std(_ratio->GetValue()));
+ return locale_convert<float>(wx_to_std(_ratio->GetValue()));
}