diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-18 07:49:06 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-18 08:46:36 +0200 |
| commit | 9d771f2ab64a461ac8ae51fd70b201e4d3fed765 (patch) | |
| tree | d7a7065136bb0b1a5f8d3072c61da74ee654d4aa /src/wx | |
| parent | f42a5dc4af8a0c8df255d11c8128daf61b302d54 (diff) | |
Fix ambiguity for old mac builds.v2.18.21
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/ratio_picker.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/ratio_picker.cc b/src/wx/ratio_picker.cc index 8e0ee2444..9be7e5da8 100644 --- a/src/wx/ratio_picker.cc +++ b/src/wx/ratio_picker.cc @@ -46,7 +46,7 @@ RatioPicker::RatioPicker(wxWindow* parent, optional<float> ratio) for (auto ratio: Ratio::all()) { _preset->add_entry(ratio.image_nickname(), ratio.id()); } - _preset->add_entry(_("Custom"), "custom"); + _preset->add_entry(_("Custom"), std::string("custom")); SetSizer(sizer); Layout(); @@ -138,7 +138,7 @@ RatioPicker::set_preset(optional<float> ratio) auto preset = Ratio::from_ratio(*ratio); _preset->set_by_data(preset ? preset->id() : "custom"); } else { - _preset->set_by_data("185"); + _preset->set_by_data(std::string("185")); } } |
