Don't mirror wxStyleTextCtrl under RTL locales
Not onlu has Scintilla no support for RTL languages, it is rendered into
a mirrored DC on Windows and so guaranteed unreadable and unsable. Fix
it by explicitly setting the window's layout direction to LTR.
(cherry picked from commit d8a90b4606)
This commit is contained 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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user