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.
This commit is contained in:
Vadim Zeitlin
2021-09-03 19:57:59 +01:00
parent ff4cd70412
commit 169a33c238

View File

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