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:
parent
546ced012a
commit
c4544839e9
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@
|
||||||
#include "dialog_colorpicker.h"
|
#include "dialog_colorpicker.h"
|
||||||
|
|
||||||
ColourButton::ColourButton(wxWindow* parent, wxWindowID id, const wxSize& size, wxColour col)
|
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())
|
, bmp(GetBitmapLabel())
|
||||||
, colour(col)
|
, colour(col)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue