]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/auibook.cpp
never return negative client sizes, fixes #15338
[wxWidgets.git] / src / aui / auibook.cpp
index caa36cbb33316434d9e3e1e382ac1dbda57c2db5..fb3d540a8488c6aba6c308db25942dd7e9c65a9e 100644 (file)
@@ -423,7 +423,7 @@ void wxAuiTabContainer::Render(wxDC* raw_dc, wxWindow* wnd)
     size_t button_count = m_buttons.GetCount();
 
     // create off-screen bitmap
-    bmp.Create(m_rect.GetWidth(), m_rect.GetHeight());
+    bmp.Create(m_rect.GetWidth(), m_rect.GetHeight(),*raw_dc);
     dc.SelectObject(bmp);
 
     if (!dc.IsOk())