diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-05-11 19:51:46 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-05-11 19:51:46 +0200 |
| commit | 1f8c381fbd3c1b1aef7b5c7ff91c03e102c83a28 (patch) | |
| tree | bc4ea42c76571ce95ab57d72ed652538f103a675 | |
| parent | d4d22f4e32b71dc25a5f80b818061a951646d763 (diff) | |
missing wxNumberFormatter.
| -rw-r--r-- | src/wx/custom_scale_dialog.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/custom_scale_dialog.cc b/src/wx/custom_scale_dialog.cc index 39cf328de..69c90cae4 100644 --- a/src/wx/custom_scale_dialog.cc +++ b/src/wx/custom_scale_dialog.cc @@ -27,6 +27,7 @@ LIBDCP_DISABLE_WARNINGS #include <wx/propgrid/property.h> #include <wx/propgrid/props.h> +#include <wx/numformatter.h> #include <wx/wx.h> LIBDCP_ENABLE_WARNINGS @@ -64,7 +65,7 @@ CustomScaleDialog::CustomScaleDialog (wxWindow* parent, dcp::Size initial, dcp:: if (custom_ratio) { _ratio_to_fit->SetValue (true); _size->SetValue (false); - _ratio->SetValue(wxString::Format(char_to_wx("%.2f"), *custom_ratio)); + _ratio->SetValue(wxNumberFormatter::ToString(*custom_ratio, 2)); _width->SetValue (initial.width); _height->SetValue (initial.height); } else if (custom_size) { |
