X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b67e8d38b6dd7652ba4c73c7df7571d5148c087a..8de5b24e54bd7fec2a9e2011b2402b3f33117bd7:/src/msw/tglbtn.cpp diff --git a/src/msw/tglbtn.cpp b/src/msw/tglbtn.cpp index 072604992c..9b6d07128d 100644 --- a/src/msw/tglbtn.cpp +++ b/src/msw/tglbtn.cpp @@ -130,11 +130,15 @@ wxSize wxToggleButton::DoGetBestSize() const // the button height is proportional to the height of the font used int hBtn = BUTTON_HEIGHT_FROM_CHAR_HEIGHT(hChar); +#if wxUSE_BUTTON wxSize sz = wxButton::GetDefaultSize(); if (wBtn > sz.x) sz.x = wBtn; if (hBtn > sz.y) sz.y = hBtn; +#else + wxSize sz(wBtn, hBtn); +#endif return sz; }