check whether we show bitmaps at all in GTKUpdateBitmap() (closes #10933)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cf7f7d5d96
commit
e71aec80fd
@ -409,10 +409,16 @@ wxButton::State wxButton::GTKGetCurrentState() const
|
||||
|
||||
void wxButton::GTKUpdateBitmap()
|
||||
{
|
||||
// if we don't show bitmaps at all, there is nothing to update
|
||||
if ( m_bitmaps[State_Normal].IsOk() )
|
||||
{
|
||||
// if we do show them, this will return a state for which we do have a
|
||||
// valid bitmap
|
||||
State state = GTKGetCurrentState();
|
||||
|
||||
GTKDoShowBitmap(m_bitmaps[state]);
|
||||
}
|
||||
}
|
||||
|
||||
void wxButton::GTKDoShowBitmap(const wxBitmap& bitmap)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user