diff options
Diffstat (limited to 'src/wx/content_colour_conversion_dialog.cc')
| -rw-r--r-- | src/wx/content_colour_conversion_dialog.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/content_colour_conversion_dialog.cc b/src/wx/content_colour_conversion_dialog.cc index 9713cde1b..e4e16157d 100644 --- a/src/wx/content_colour_conversion_dialog.cc +++ b/src/wx/content_colour_conversion_dialog.cc @@ -93,8 +93,8 @@ ContentColourConversionDialog::check_for_preset () optional<size_t> preset = _editor->get().preset (); - _preset_check->SetValue (preset); - _preset_choice->Enable (preset); + _preset_check->SetValue (static_cast<bool>(preset)); + _preset_choice->Enable (static_cast<bool>(preset)); if (preset) { _preset_choice->SetSelection (preset.get ()); } else { @@ -123,5 +123,3 @@ ContentColourConversionDialog::preset_choice_changed () set (presets[s].conversion); } } - - |
