X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c8b041f147ff9bb6ce38f0e2da1fd82f6484523..2f25981069f0409ec17d3ff946870b99f918b717:/src/msw/button.cpp diff --git a/src/msw/button.cpp b/src/msw/button.cpp index b50d0c6bd8..b9ac736375 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -241,7 +241,9 @@ wxSize wxButton::DoGetBestSize() const return sz; } - return wxSize(wBtn, hBtn); + wxSize best(wBtn, hBtn); + CacheBestSize(best); + return best; } /* static */