X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fab71288ea3629e48fe100b337d9465266ef149..70a7bd90f9bdafd5ffbc89fd0b79b9e900d7dd22:/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 )