From 043183356bdc1f46a47177f7f2fe113969bc8019 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 24 Jan 2021 08:59:12 -0800 Subject: [PATCH] Set text layout direction earlier during window creation Code later in the same function was using the direction before it was set --- src/gtk/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 2e0e7f2ed2..3d503ba0cb 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2803,6 +2803,8 @@ void wxWindowGTK::PostCreation() { wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") ); + SetLayoutDirection(wxLayout_Default); + GTKConnectFreezeWidget(m_widget); if (m_wxwindow && m_wxwindow != m_widget) GTKConnectFreezeWidget(m_wxwindow); @@ -2924,8 +2926,6 @@ void wxWindowGTK::PostCreation() InheritAttributes(); - SetLayoutDirection(wxLayout_Default); - // if the window had been disabled before being created, it should be // created in the initially disabled state if ( !m_isEnabled )