Explicitly set the size of ColourButton as the default looks somewhat odd with wx trunk

Originally committed to SVN as r5686.
This commit is contained in:
Thomas Goyne 2011-09-29 20:27:50 +00:00
parent 546ced012a
commit c4544839e9
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@
#include "dialog_colorpicker.h"
ColourButton::ColourButton(wxWindow* parent, wxWindowID id, const wxSize& size, wxColour col)
: wxBitmapButton(parent, id, wxBitmap(size))
: wxBitmapButton(parent, id, wxBitmap(size), wxDefaultPosition, wxSize(size.GetWidth() + 6, size.GetHeight() + 6))
, bmp(GetBitmapLabel())
, colour(col)
{