From 572aeb77894e3b204a32c22bca066f9e5179d40c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 3 Aug 2001 17:19:55 +0000 Subject: [PATCH] fix for infinite recursion in UpdateFontIfNeeded git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/textctrl.cpp | 4 ++-- src/gtk1/textctrl.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.50.0