From 193939453e4fdb11d74ac700ce959d21050b6e61 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 31 Jan 2018 03:00:51 +0100 Subject: [PATCH] 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. --- src/generic/richmsgdlgg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/richmsgdlgg.cpp b/src/generic/richmsgdlgg.cpp index ed9a5d9717..eb83cb099d 100644 --- a/src/generic/richmsgdlgg.cpp +++ b/src/generic/richmsgdlgg.cpp @@ -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 ); }