X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fab71288ea3629e48fe100b337d9465266ef149..7b25d8e7bd0eca9f0f6efe62b3721d14c394dac9:/src/gtk/bmpbuttn.cpp diff --git a/src/gtk/bmpbuttn.cpp b/src/gtk/bmpbuttn.cpp index 55b275d0bb..b209fabcc5 100644 --- a/src/gtk/bmpbuttn.cpp +++ b/src/gtk/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 )