From 1d13cc5da47cd44765e0751b1a3a9d3ecfccd8bb Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 17 May 2005 19:05:03 +0000 Subject: [PATCH] Cache best size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/choice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index c8681252f8..2a83571ecb 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -567,7 +567,9 @@ wxSize wxChoice::DoGetBestSize() const // the combobox should be slightly larger than the widest string wChoice += 5*GetCharWidth(); - return wxSize(wChoice, EDIT_HEIGHT_FROM_CHAR_HEIGHT(GetCharHeight())); + wxSize best(wChoice, EDIT_HEIGHT_FROM_CHAR_HEIGHT(GetCharHeight())); + CacheBestSize(best); + return best; } WXLRESULT wxChoice::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) -- 2.50.0