From 3d4da0ceeb6c61e560a0ddb25df62020265360e9 Mon Sep 17 00:00:00 2001 From: JulianSmart Date: Fri, 1 Jul 2016 15:37:32 +0100 Subject: [PATCH] Fix for clipped 16x16 bitmap buttons --- src/osx/bmpbuttn_osx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osx/bmpbuttn_osx.cpp b/src/osx/bmpbuttn_osx.cpp index fcc4b9ccf2..f2088bd480 100644 --- a/src/osx/bmpbuttn_osx.cpp +++ b/src/osx/bmpbuttn_osx.cpp @@ -66,6 +66,10 @@ wxSize wxBitmapButton::DoGetBestSize() const if ( GetBitmapLabel().IsOk() ) { + // Hack to stop 16x16 bitmap being clipped + if (GetBitmapLabel().GetScaledSize().x == 16) + best += wxSize(4,0); + best += GetBitmapLabel().GetScaledSize(); }