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:
@@ -716,7 +716,7 @@ void wxAnyButton::DoSetBitmap(const wxBitmap& bitmap, State which)
|
|||||||
if ( m_imageData &&
|
if ( m_imageData &&
|
||||||
bitmap.GetSize() != m_imageData->GetBitmap(State_Normal).GetSize() )
|
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" );
|
"Must set normal bitmap with the new size first" );
|
||||||
|
|
||||||
#if wxUSE_UXTHEME
|
#if wxUSE_UXTHEME
|
||||||
|
Reference in New Issue
Block a user