From 9c916bad3eae5e3ed31a00c491d9ed93b2adddbd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 18 Jul 2025 07:49:06 +0200 Subject: Fix ambiguity for old mac builds. --- src/wx/ratio_picker.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/ratio_picker.cc b/src/wx/ratio_picker.cc index 39d2c4f2a..40885e368 100644 --- a/src/wx/ratio_picker.cc +++ b/src/wx/ratio_picker.cc @@ -46,7 +46,7 @@ RatioPicker::RatioPicker(wxWindow* parent, optional 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 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")); } } -- cgit v1.2.3