Fix wxGenericColourButton bitmaps for different button states

Only the bitmap of the normal state was updated, not of the other (focused, hover, disabled, etc) states.
This became obvious after ee93f4cae8, but already happened before that for the disabled state.

Invalidate the bitmapButton using wxNullBitmap, so all states will be updated when setting the bitmap.
This commit is contained in:
Maarten Bent
2022-01-05 23:20:42 +01:00
parent e2d34e982e
commit 2cae38502f

View File

@@ -149,6 +149,8 @@ void wxGenericColourButton::UpdateColour()
}
dc.SelectObject( wxNullBitmap );
SetBitmapLabel( wxNullBitmap );
SetBitmapLabel( m_bitmap );
}