set up the correct layout direction for memory dc in Render() (patch 1789359)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-12-20 01:19:15 +00:00
parent 0bc8ff0974
commit ef32916629

View File

@ -1611,6 +1611,11 @@ void wxAuiTabContainer::Render(wxDC* raw_dc, wxWindow* wnd)
return;
wxMemoryDC dc;
// use the same layout direction as the window DC uses to ensure that the
// text is rendered correctly
dc.SetLayoutDirection(raw_dc->GetLayoutDirection());
wxBitmap bmp;
size_t i;
size_t page_count = m_pages.GetCount();