Fix for clipped 16x16 bitmap buttons

This commit is contained in:
JulianSmart 2016-07-01 15:37:32 +01:00
parent 3d8f9517f3
commit 3d4da0ceeb

View File

@ -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();
}