]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/tbarsmpl.cpp
don't include windows.h unless neccessary
[wxWidgets.git] / src / generic / tbarsmpl.cpp
index c019f0f43f7d9ca344baea52386b1032e8a83974..10f4cf11036db45dbc42481ebfb1a07577b1c50f 100644 (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
     }