]> git.saurik.com Git - wxWidgets.git/blobdiff - src/ribbon/art_msw.cpp
correcting wxX11 for wxkeysym as was done for wxMOTIF
[wxWidgets.git] / src / ribbon / art_msw.cpp
index ad494d5863fcac5ff1f520c48e816f9fdff7c431..562c89772aec320b0a4ff2c56172e4611984f411 100644 (file)
@@ -1035,11 +1035,14 @@ void wxRibbonMSWArtProvider::DrawTab(
     if(m_flags & wxRIBBON_BAR_SHOW_PAGE_ICONS)
     {
         wxBitmap icon = tab.page->GetIcon();
+        if(icon.IsOk())
+        {
         int x = tab.rect.x + 4;
         if((m_flags & wxRIBBON_BAR_SHOW_PAGE_LABELS) == 0)
             x = tab.rect.x + (tab.rect.width - icon.GetWidth()) / 2;
         dc.DrawBitmap(icon, x, tab.rect.y + 1 + (tab.rect.height - 1 -
             icon.GetHeight()) / 2, true);
+        }
     }
     if(m_flags & wxRIBBON_BAR_SHOW_PAGE_LABELS)
     {