From 80791c37b5d73e38ff1e77d9c42be6f4f55dc196 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 10 Nov 2012 00:52:31 +0000 Subject: [PATCH] Fix incorrect wxSizerFlags::Border() call in the scroll sample. 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 --- samples/scroll/scroll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/scroll/scroll.cpp b/samples/scroll/scroll.cpp index d8bc171f06..0ee088f4c7 100644 --- a/samples/scroll/scroll.cpp +++ b/samples/scroll/scroll.cpp @@ -797,7 +797,7 @@ MySizerScrolledWindow::MySizerScrolledWindow(wxWindow *parent) 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"), -- 2.45.2