From 75d508b6e6adfaa58289aba4a8d35c1025c21792 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Thu, 8 Jul 2021 13:13:42 +0200 Subject: [PATCH] Fix regression in sizes of buttons with bitmaps in wxMSW After changes in 53eff92ea7 (Call AdjustForBitmapMargins() only once in wxAnyButton, 2021-04-24) only the margin was accounted for, not the image size. Closes https://github.com/wxWidgets/wxWidgets/pull/2421 --- src/msw/anybutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/anybutton.cpp b/src/msw/anybutton.cpp index 7a44e9d0ed..b329f2796a 100644 --- a/src/msw/anybutton.cpp +++ b/src/msw/anybutton.cpp @@ -621,7 +621,7 @@ wxSize wxAnyButton::DoGetBestSize() const } if ( m_imageData ) - AdjustForBitmapMargins(size); + AdjustForBitmapSize(size); return wxMSWButton::IncreaseToStdSizeAndCache(self, size); }