X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/706fb8932a673a19d7c247d177b49691732b9bd4..f8be01b1acf65639db6d73865c94a9bef42de08c:/src/msw/tglbtn.cpp diff --git a/src/msw/tglbtn.cpp b/src/msw/tglbtn.cpp index 6b91280e85..c3f1af62bc 100644 --- a/src/msw/tglbtn.cpp +++ b/src/msw/tglbtn.cpp @@ -135,6 +135,7 @@ wxSize wxToggleButton::DoGetBestSize() const wxSize sz(wBtn, hBtn); #endif + CacheBestSize(sz); return sz; }