diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index ba3c070bb9..596ab3c6b3 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -1077,10 +1077,10 @@ void wxTextCtrl::ChangeFontGlobally() wxString value = GetValue(); if ( !value.IsEmpty() ) { + m_updateFont = FALSE; + Clear(); AppendText(value); - - m_updateFont = FALSE; } } diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index ba3c070bb9..596ab3c6b3 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -1077,10 +1077,10 @@ void wxTextCtrl::ChangeFontGlobally() wxString value = GetValue(); if ( !value.IsEmpty() ) { + m_updateFont = FALSE; + Clear(); AppendText(value); - - m_updateFont = FALSE; } }