new logic applies to SetFont(wxNullFont), too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1062,9 +1062,6 @@ wxFont& wxWindowBase::DoGetFont() const
|
||||
|
||||
bool wxWindowBase::SetFont(const wxFont& font)
|
||||
{
|
||||
if ( !font.Ok() )
|
||||
return false;
|
||||
|
||||
if ( font == m_font )
|
||||
{
|
||||
// no change
|
||||
@@ -1072,8 +1069,7 @@ bool wxWindowBase::SetFont(const wxFont& font)
|
||||
}
|
||||
|
||||
m_font = font;
|
||||
|
||||
m_hasFont = true;
|
||||
m_hasFont = font.Ok();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user