Fix harmless warning about bool conversion in wxGenericColourButton
Make the conversion explicit to avoid MSVC warning C4800 about it being done implicitly (which appears in release builds only).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user