From c401e3d24b1738f7daba996d66126826157cb532 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 27 May 2024 00:05:25 +0300 Subject: [PATCH] Prefer wxFB sizes in bitmap buttons. --- common/widgets/bitmap_button.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/common/widgets/bitmap_button.cpp b/common/widgets/bitmap_button.cpp index 968fa8f045..d28a8a010e 100644 --- a/common/widgets/bitmap_button.cpp +++ b/common/widgets/bitmap_button.cpp @@ -101,12 +101,10 @@ wxSize BITMAP_BUTTON::DoGetBestSize() const void BITMAP_BUTTON::invalidateBestSize() { -#ifdef __WXMAC__ - // InvalidateBestSize() doesn't appear to work on Mac: DoGetBestSize() is never called. - SetMinSize( DoGetBestSize() ); -#else + // Uncomment to override wxFB sizes + // SetMinSize( DoGetBestSize() ); + InvalidateBestSize(); -#endif }