]> git.saurik.com Git - wxWidgets.git/commitdiff
font affects best size, invalidate cache if it changes
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 15 Aug 2004 11:50:48 +0000 (11:50 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 15 Aug 2004 11:50:48 +0000 (11:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index aa5c6d38653702256dbc393c32cb3fcf7bf338aa..f6551938a2951e12c583f435f4f19c40fe469c47 100644 (file)
@@ -1081,6 +1081,8 @@ bool wxWindowBase::SetFont(const wxFont& font)
     m_hasFont = font.Ok();
     m_inheritFont = m_hasFont;
 
+    InvalidateBestSize();
+
     return true;
 }