diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-09 02:02:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:02:24 +0200 |
| commit | 5527bdb269e355ca95aa91fe3907bfef0ef17ff4 (patch) | |
| tree | 5dd2fc2e81cf193c9712606f43f1e13e1a6e46bf /src/wx/custom_scale_dialog.cc | |
| parent | a27964bd1794bb6a843873a0eaf3faa2c5cc317a (diff) | |
Remove some implicit conversions between wxString and std::string.
Diffstat (limited to 'src/wx/custom_scale_dialog.cc')
| -rw-r--r-- | src/wx/custom_scale_dialog.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wx/custom_scale_dialog.cc b/src/wx/custom_scale_dialog.cc index e750b9baa..9f825785e 100644 --- a/src/wx/custom_scale_dialog.cc +++ b/src/wx/custom_scale_dialog.cc @@ -64,19 +64,19 @@ CustomScaleDialog::CustomScaleDialog (wxWindow* parent, dcp::Size initial, dcp:: if (custom_ratio) { _ratio_to_fit->SetValue (true); _size->SetValue (false); - _ratio->SetValue (wxString::Format("%.2f", *custom_ratio)); + _ratio->SetValue(wxString::Format(char_to_wx("%.2f"), *custom_ratio)); _width->SetValue (initial.width); _height->SetValue (initial.height); } else if (custom_size) { _ratio_to_fit->SetValue (false); _size->SetValue (true); - _ratio->SetValue (wxString::Format("%.2f", initial.ratio())); + _ratio->SetValue(wxString::Format(char_to_wx("%.2f"), initial.ratio())); _width->SetValue (custom_size->width); _height->SetValue (custom_size->height); } else { _ratio_to_fit->SetValue (true); _size->SetValue (false); - _ratio->SetValue (wxString::Format("%.2f", initial.ratio())); + _ratio->SetValue(wxString::Format(char_to_wx("%.2f"), initial.ratio())); _width->SetValue (initial.width); _height->SetValue (initial.height); } @@ -99,7 +99,7 @@ void CustomScaleDialog::update_size_from_ratio () { dcp::Size const s = fit_ratio_within (raw_convert<float>(wx_to_std(_ratio->GetValue())), _film_container); - _size_from_ratio->SetLabelMarkup (wxString::Format("<i>%dx%d</i>", s.width, s.height)); + _size_from_ratio->SetLabelMarkup(wxString::Format(char_to_wx("<i>%dx%d</i>"), s.width, s.height)); } @@ -107,7 +107,7 @@ void CustomScaleDialog::update_ratio_from_size () { float const ratio = _height->GetValue() > 0 ? (float(_width->GetValue()) / _height->GetValue()) : 2; - _ratio_from_size->SetLabelMarkup (wxString::Format("<i>%.2f:1</i>", ratio)); + _ratio_from_size->SetLabelMarkup(wxString::Format(char_to_wx("<i>%.2f:1</i>"), ratio)); } |
