From ca3e63656ca66d9a1b337f63bfbcb9a4d55bb8c7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 13 Oct 2016 14:26:53 +0200 Subject: [PATCH] Remove unwanted flag from sizer in the help sample This resulted in an assert failure as wxALIGN_CENTER_VERTICAL has no chance of working for an element of a vertical wxBoxSizer. --- samples/help/demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/help/demo.cpp b/samples/help/demo.cpp index d01ed11b09..4488098a1e 100644 --- a/samples/help/demo.cpp +++ b/samples/help/demo.cpp @@ -706,8 +706,8 @@ MyModalDialog::MyModalDialog(wxWindow *parent) wxDefaultPosition, wxSize(300, 100), wxTE_MULTILINE); text->SetHelpText(_("Type text here if you have got nothing more interesting to do")); - sizerTop->Add(text, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 5 ); - sizerTop->Add(sizerRow, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + sizerTop->Add(text, 0, wxEXPAND|wxALL, 5 ); + sizerTop->Add(sizerRow, 0, wxALIGN_RIGHT|wxALL, 5 ); SetSizerAndFit(sizerTop);