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

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

View File

@@ -1742,6 +1742,11 @@ void wxAuiTabContainer::Render(wxDC* raw_dc, wxWindow* wnd)
return; return;
wxMemoryDC dc; 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; wxBitmap bmp;
size_t i; size_t i;
size_t page_count = m_pages.GetCount(); size_t page_count = m_pages.GetCount();