Fix extraneous parens warning

This commit is contained in:
Jeff Bland 2018-05-18 06:50:58 -06:00
parent 610db240a8
commit 0445b3eddd

View File

@ -129,7 +129,7 @@ bool wxBMPHandler::SaveDib(wxImage *image,
(format == wxBMP_8BPP_RED) || (format == wxBMP_8BPP_PALETTE) )
{
// need to set a wxPalette to use this, HOW TO CHECK IF VALID, SIZE?
if ((format == wxBMP_8BPP_PALETTE)
if (format == wxBMP_8BPP_PALETTE
#if wxUSE_PALETTE
&& !image->HasPalette()
#endif // wxUSE_PALETTE