]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for infinite recursion in UpdateFontIfNeeded
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Aug 2001 17:19:55 +0000 (17:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Aug 2001 17:19:55 +0000 (17:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp
src/gtk1/textctrl.cpp

index ba3c070bb9b9b529a734bfdccd8d52210d65bd92..596ab3c6b30e20c7bb8c3c555e1521fabef26a6e 100644 (file)
@@ -1077,10 +1077,10 @@ void wxTextCtrl::ChangeFontGlobally()
     wxString value = GetValue();
     if ( !value.IsEmpty() )
     {
+        m_updateFont = FALSE;
+
         Clear();
         AppendText(value);
-
-        m_updateFont = FALSE;
     }
 }
 
index ba3c070bb9b9b529a734bfdccd8d52210d65bd92..596ab3c6b30e20c7bb8c3c555e1521fabef26a6e 100644 (file)
@@ -1077,10 +1077,10 @@ void wxTextCtrl::ChangeFontGlobally()
     wxString value = GetValue();
     if ( !value.IsEmpty() )
     {
+        m_updateFont = FALSE;
+
         Clear();
         AppendText(value);
-
-        m_updateFont = FALSE;
     }
 }