Fix assert due to wrong sizer flags in wxGenericRichMessageDialog

This assert was especially annoying because it could be shown when
showing a previous assert message on the platforms without the native
rich message dialog (i.e. anything but MSW), resulting in reentering the
assert handler and killing the application.
This commit is contained in:
Vadim Zeitlin 2018-01-31 03:00:51 +01:00
parent 06c29a7f20
commit 193939453e

View File

@ -77,7 +77,7 @@ void wxGenericRichMessageDialog::AddMessageDialogDetails(wxSizer *sizer)
sizerPane->Add( new wxStaticText( windowPane, -1, m_detailedText ) );
windowPane->SetSizer( sizerPane );
sizerDetails->Add( m_detailsPane, wxSizerFlags().Right().Expand() );
sizerDetails->Add( m_detailsPane, wxSizerFlags().Expand() );
sizer->Add( sizerDetails, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 );
}