Remove unnecessary SetMargins() calls from wxBitmapButton ctor
Margins are overwritten by Create() anyhow, so there is just no need to set them in the default ctor.
This commit is contained in:
@@ -20,7 +20,6 @@ class WXDLLIMPEXP_CORE wxBitmapButton : public wxBitmapButtonBase
|
|||||||
public:
|
public:
|
||||||
wxBitmapButton()
|
wxBitmapButton()
|
||||||
{
|
{
|
||||||
SetMargins(wxDEFAULT_BUTTON_MARGIN, wxDEFAULT_BUTTON_MARGIN);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
||||||
|
Reference in New Issue
Block a user