From 786c4e23f5d91c319804b4204ebda023b959794c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 6 Jul 2004 16:58:00 +0000 Subject: [PATCH] suppress new lines in the details pane git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/logg.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index 3d291f2322..a3c184b6aa 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -717,15 +717,10 @@ wxLogDialog::wxLogDialog(wxWindow *parent, for ( size_t n = 0; n < count; n++ ) { wxString msg = messages[n]; - do - { - m_messages.Add(msg.BeforeFirst(_T('\n'))); - msg = msg.AfterFirst(_T('\n')); - - m_severity.Add(severity[n]); - m_times.Add(times[n]); - } - while ( !!msg ); + msg.Replace("\n", " "); + m_messages.Add(msg); + m_severity.Add(severity[n]); + m_times.Add(times[n]); } m_showingDetails = false; // not initially -- 2.45.2