From 583d7e555ec0565e0df87a2c1bac75c278649aef Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 15 Aug 2004 11:50:48 +0000 Subject: [PATCH] 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 --- src/common/wincmn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index aa5c6d3865..f6551938a2 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1081,6 +1081,8 @@ bool wxWindowBase::SetFont(const wxFont& font) m_hasFont = font.Ok(); m_inheritFont = m_hasFont; + InvalidateBestSize(); + return true; } -- 2.50.0