Set text layout direction earlier during window creation

Code later in the same function was using the direction before it was set
This commit is contained in:
Paul Cornett
2021-01-24 08:59:12 -08:00
parent 0157ea11a1
commit 043183356b

View File

@@ -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 )