font affects best size, invalidate cache if it changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1081,6 +1081,8 @@ bool wxWindowBase::SetFont(const wxFont& font)
|
|||||||
m_hasFont = font.Ok();
|
m_hasFont = font.Ok();
|
||||||
m_inheritFont = m_hasFont;
|
m_inheritFont = m_hasFont;
|
||||||
|
|
||||||
|
InvalidateBestSize();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user