From 169a33c23820fea85614e61e6e1771886dc48cd3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 3 Sep 2021 19:57:59 +0100 Subject: [PATCH] Remove always true check from assert in MSW wxAnyButton code The bitmap here is always valid as the invalid case is handled in the beginning of the function. --- src/msw/anybutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/anybutton.cpp b/src/msw/anybutton.cpp index 67c7640b7b..adcf5ca9e1 100644 --- a/src/msw/anybutton.cpp +++ b/src/msw/anybutton.cpp @@ -716,7 +716,7 @@ void wxAnyButton::DoSetBitmap(const wxBitmap& bitmap, State which) if ( m_imageData && bitmap.GetSize() != m_imageData->GetBitmap(State_Normal).GetSize() ) { - wxASSERT_MSG( (which == State_Normal) || bitmap.IsNull(), + wxASSERT_MSG( which == State_Normal, "Must set normal bitmap with the new size first" ); #if wxUSE_UXTHEME