1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 08:29:27 +02:00

Fix sizers in WarningDialog

AddUnits is only allowed in a HorizontalLay or MultiColumn.
EndVerticalLay was missing.
This commit is contained in:
James Crook 2018-04-08 11:48:42 +01:00
parent 564e840d54
commit 98bbb3436d

View File

@ -73,9 +73,10 @@ WarningDialog::WarningDialog(wxWindow *parent, const wxString &message,
S.SetBorder(10); S.SetBorder(10);
S.StartVerticalLay(false); S.StartVerticalLay(false);
{ {
S.AddUnits(message); S.AddFixedText(message);
mCheckBox = S.AddCheckBox(footer, wxT("false")); mCheckBox = S.AddCheckBox(footer, wxT("false"));
} }
S.EndVerticalLay();
S.SetBorder(0); S.SetBorder(0);
S.AddStandardButtons(showCancelButton ? eOkButton | eCancelButton : eOkButton); S.AddStandardButtons(showCancelButton ? eOkButton | eCancelButton : eOkButton);