diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 048229f35f..fe3b52e7b2 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -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();