diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-17 14:08:22 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-17 14:08:22 +0200 |
| commit | f42a5dc4af8a0c8df255d11c8128daf61b302d54 (patch) | |
| tree | 680879f8b977d2f6cb43caa1b1e322351248f993 | |
| parent | 0a6e0040c9f7c9c5cba8368ab174ce8fa98833ba (diff) | |
Fix build with older boost.
| -rw-r--r-- | src/wx/ratio_picker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/ratio_picker.cc b/src/wx/ratio_picker.cc index 39d2c4f2a..8e0ee2444 100644 --- a/src/wx/ratio_picker.cc +++ b/src/wx/ratio_picker.cc @@ -64,7 +64,7 @@ RatioPicker::RatioPicker(wxWindow* parent, optional<float> ratio) void RatioPicker::set(optional<float> ratio) { - _enable->set(ratio.has_value()); + _enable->set(static_cast<bool>(ratio)); set_preset(ratio); set_custom(ratio); } |
