fix for palette restoration in wxToolBarSimple

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-11-24 23:59:08 +00:00
parent 05c9ccbe62
commit a6b27b78d3

View File

@ -557,7 +557,8 @@ void wxToolBarSimple::DrawTool(wxDC& dc, wxToolBarToolBase *toolBase)
#if wxUSE_PALETTE
#ifndef __WXGTK__
memDC.SetPalette(wxNullPalette);
if (bitmap.GetPalette())
memDC.SetPalette(wxNullPalette);
#endif
#endif // wxUSE_PALETTE
}