From 88a767773f534294264424e070a282b35a79be26 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Jul 2017 21:33:24 +0200 Subject: [PATCH] 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). --- src/generic/clrpickerg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }