]> git.saurik.com Git - wxWidgets.git/commitdiff
Draw wxAuiToolbar button text even if it has no bitmap.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 May 2011 14:17:59 +0000 (14:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 May 2011 14:17:59 +0000 (14:17 +0000)
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

src/aui/auibar.cpp

index cb1903a2877dadf1ad5e77925a58c81f2086d793..b79323d6648bdaa6975d43e963cc70a26e40de62 100644 (file)
@@ -362,10 +362,8 @@ void wxAuiDefaultToolBarArt::DrawButton(
     else
         bmp = item.GetBitmap();
 
-    if (!bmp.IsOk())
-        return;
-
-    dc.DrawBitmap(bmp, bmp_x, bmp_y, true);
+    if ( bmp.IsOk() )
+        dc.DrawBitmap(bmp, bmp_x, bmp_y, true);
 
     // set the item's text color based on if it is disabled
     dc.SetTextForeground(*wxBLACK);