diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 93e4266d2b..38b9d52e30 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -222,6 +222,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 6b5e34d486..cd4ee94e94 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -222,6 +222,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; }