diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index e8a4e588dd..263ff1a0b3 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -2832,7 +2832,7 @@ bool wxTextCtrl::MSWSetParaFormat(const wxTextAttr& style, long start, long end) #if wxUSE_RICHEDIT2 if ( m_verRichEdit > 1 ) { - if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft ) + if ( GetLayoutDirection() == wxLayout_RightToLeft ) { // Use RTL paragraphs in RTL mode to get proper layout pf.dwMask |= PFM_RTLPARA;