Draw wxAuiToolbar button text even if it has no bitmap.
Don't skip drawing the button label if it doesn't have any bitmap. Closes #10303. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -362,9 +362,7 @@ void wxAuiDefaultToolBarArt::DrawButton(
|
||||
else
|
||||
bmp = item.GetBitmap();
|
||||
|
||||
if (!bmp.IsOk())
|
||||
return;
|
||||
|
||||
if ( bmp.IsOk() )
|
||||
dc.DrawBitmap(bmp, bmp_x, bmp_y, true);
|
||||
|
||||
// set the item's text color based on if it is disabled
|
||||
|
Reference in New Issue
Block a user