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.
This commit is contained in:
Vadim Zeitlin 2016-10-13 14:26:53 +02:00
parent a88cdfb49b
commit ca3e63656c

View File

@ -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);