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:
parent
06c29a7f20
commit
193939453e
@ -77,7 +77,7 @@ void wxGenericRichMessageDialog::AddMessageDialogDetails(wxSizer *sizer)
|
|||||||
sizerPane->Add( new wxStaticText( windowPane, -1, m_detailedText ) );
|
sizerPane->Add( new wxStaticText( windowPane, -1, m_detailedText ) );
|
||||||
windowPane->SetSizer( sizerPane );
|
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 );
|
sizer->Add( sizerDetails, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user