diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 6c6e770e58..bcf8b06c2d 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -224,6 +224,9 @@ bool wxStyledTextCtrl::Create(wxWindow *parent, // Make sure it can take the focus SetCanFocus(true); + // STC doesn't support RTL languages at all + SetLayoutDirection(wxLayout_LeftToRight); + return true; } diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index 922156c977..ca2b8a07b5 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -224,6 +224,9 @@ bool wxStyledTextCtrl::Create(wxWindow *parent, // Make sure it can take the focus SetCanFocus(true); + // STC doesn't support RTL languages at all + SetLayoutDirection(wxLayout_LeftToRight); + return true; }