X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d9941636dd0f6089a8c3d653a526b5359db90bc..1aff4201c36daec702cabc869c0bf899c56ba8cc:/src/msw/button.cpp?ds=sidebyside diff --git a/src/msw/button.cpp b/src/msw/button.cpp index 4f9f577f78..407981a03a 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -1040,6 +1040,7 @@ void wxButton::DoSetBitmapMargins(wxCoord x, wxCoord y) wxCHECK_RET( m_imageData, "SetBitmap() must be called first" ); m_imageData->SetBitmapMargins(x, y); + InvalidateBestSize(); } void wxButton::DoSetBitmapPosition(wxDirection dir) @@ -1047,6 +1048,7 @@ void wxButton::DoSetBitmapPosition(wxDirection dir) wxCHECK_RET( m_imageData, "SetBitmap() must be called first" ); m_imageData->SetBitmapPosition(dir); + InvalidateBestSize(); } // ----------------------------------------------------------------------------