]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/notebook.cpp
Updates for Y positioning
[wxWidgets.git] / src / univ / notebook.cpp
index 17d7aefce06f4d25612faa6b2e0cd808731ad451..252723acd71358232492af6fbb8cace98710b220 100644 (file)
@@ -466,6 +466,7 @@ void wxNotebook::DoDrawTab(wxDC& dc, const wxRect& rect, size_t n)
         dc.SelectObject(bmp);
         dc.SetBackground(wxBrush(GetBackgroundColour(), wxSOLID));
         m_imageList->Draw(image, dc, 0, 0, wxIMAGELIST_DRAW_NORMAL, TRUE);
         dc.SelectObject(bmp);
         dc.SetBackground(wxBrush(GetBackgroundColour(), wxSOLID));
         m_imageList->Draw(image, dc, 0, 0, wxIMAGELIST_DRAW_NORMAL, TRUE);
+        dc.SelectObject(wxNullBitmap);
 #else
         bmp = *m_imageList->GetBitmap(image);
 #endif
 #else
         bmp = *m_imageList->GetBitmap(image);
 #endif