diff --git a/src/generic/clrpickerg.cpp b/src/generic/clrpickerg.cpp index 6eff895c8d..6cd4055e16 100644 --- a/src/generic/clrpickerg.cpp +++ b/src/generic/clrpickerg.cpp @@ -64,7 +64,7 @@ bool wxGenericColourButton::Create( wxWindow *parent, wxWindowID id, m_colour = col; UpdateColour(); InitColourData(); - ms_data.SetChooseAlpha(style & wxCLRP_SHOW_ALPHA); + ms_data.SetChooseAlpha((style & wxCLRP_SHOW_ALPHA) != 0); return true; }