X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d482d5e468af38b66e8181760d5214c518255355..737883f20a97658d4d94f8dfbcf2062209c39a28:/src/generic/richmsgdlgg.cpp diff --git a/src/generic/richmsgdlgg.cpp b/src/generic/richmsgdlgg.cpp index 06b226d4f6..c656332a68 100644 --- a/src/generic/richmsgdlgg.cpp +++ b/src/generic/richmsgdlgg.cpp @@ -53,15 +53,10 @@ void wxGenericRichMessageDialog::AddMessageDialogCheckBox(wxSizer *sizer) { if ( !m_checkBoxText.empty() ) { - wxSizer *sizerCheckBox = new wxBoxSizer( wxHORIZONTAL ); + m_checkBox = new wxCheckBox(this, wxID_ANY, m_checkBoxText); + m_checkBox->SetValue(m_checkBoxValue); - m_checkBox = new wxCheckBox( this, - wxID_ANY, - m_checkBoxText ); - m_checkBox->SetValue( m_checkBoxValue ); - sizerCheckBox->Add( m_checkBox, 0, wxBOTTOM | wxALIGN_LEFT ); - - sizer->Add( sizerCheckBox, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 ); + sizer->Add(m_checkBox, wxSizerFlags().Left().Border(wxLEFT|wxTOP, 10)); } }