X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/706fb8932a673a19d7c247d177b49691732b9bd4..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/msw/tglbtn.cpp?ds=inline 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; }