fix for infinite recursion in UpdateFontIfNeeded
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1077,10 +1077,10 @@ void wxTextCtrl::ChangeFontGlobally()
|
|||||||
wxString value = GetValue();
|
wxString value = GetValue();
|
||||||
if ( !value.IsEmpty() )
|
if ( !value.IsEmpty() )
|
||||||
{
|
{
|
||||||
|
m_updateFont = FALSE;
|
||||||
|
|
||||||
Clear();
|
Clear();
|
||||||
AppendText(value);
|
AppendText(value);
|
||||||
|
|
||||||
m_updateFont = FALSE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1077,10 +1077,10 @@ void wxTextCtrl::ChangeFontGlobally()
|
|||||||
wxString value = GetValue();
|
wxString value = GetValue();
|
||||||
if ( !value.IsEmpty() )
|
if ( !value.IsEmpty() )
|
||||||
{
|
{
|
||||||
|
m_updateFont = FALSE;
|
||||||
|
|
||||||
Clear();
|
Clear();
|
||||||
AppendText(value);
|
AppendText(value);
|
||||||
|
|
||||||
m_updateFont = FALSE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user