X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fab71288ea3629e48fe100b337d9465266ef149..0ce5a3a853f2eaa7fe58e494aa0605918531ff3b:/src/gtk1/bmpbuttn.cpp?ds=sidebyside diff --git a/src/gtk1/bmpbuttn.cpp b/src/gtk1/bmpbuttn.cpp index 55b275d0bb..b209fabcc5 100644 --- a/src/gtk1/bmpbuttn.cpp +++ b/src/gtk1/bmpbuttn.cpp @@ -265,16 +265,7 @@ void wxBitmapButton::OnSetBitmap() wxSize wxBitmapButton::DoGetBestSize() const { - wxSize best; - - if (m_bmpNormal.Ok()) - { - int border = HasFlag(wxNO_BORDER) ? 4 : 10; - best.x = m_bmpNormal.GetWidth()+border; - best.y = m_bmpNormal.GetHeight()+border; - } - CacheBestSize(best); - return best; + return wxControl::DoGetBestSize(); } bool wxBitmapButton::Enable( bool enable )