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:
Vadim Zeitlin
2017-07-18 21:33:24 +02:00
parent 1f6cd7a780
commit 88a767773f

View File

@@ -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;
}