#include "colour_conversion_editor.h"
#include <wx/statline.h>
#include <boost/foreach.hpp>
+#include <iostream>
using std::string;
using std::vector;
if (_setting) {
return;
}
-
+
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 {
set (presets[s].conversion);
}
}
-
-