Using 20 instead of a wxDirection resulted in an assert, fix the syntax.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72937
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_button = new wxButton( this, wxID_RESIZE_FRAME, "Press me",
wxDefaultPosition, SMALL_BUTTON );
m_button = new wxButton( this, wxID_RESIZE_FRAME, "Press me",
wxDefaultPosition, SMALL_BUTTON );
- sizer->Add(m_button, wxSizerFlags().Centre().Border(20));
+ sizer->Add(m_button, wxSizerFlags().Centre().Border(wxALL, 20));
sizer->Add(new wxStaticText(this, wxID_ANY, "This is just"),
wxSizerFlags().Centre());
sizer->Add(new wxStaticText(this, wxID_ANY, "some decoration"),
sizer->Add(new wxStaticText(this, wxID_ANY, "This is just"),
wxSizerFlags().Centre());
sizer->Add(new wxStaticText(this, wxID_ANY, "some decoration"),