]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/logg.cpp
Use DeafultAttributes instead of hard coded defaults
[wxWidgets.git] / src / generic / logg.cpp
index 3d291f2322610a35bd57a5934bbbb15f819b95f3..70cdb8e28851dc50c7b66e42341f3eac7d165490 100644 (file)
@@ -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(wxT("\n"), wxT(" "));
+        m_messages.Add(msg);
+        m_severity.Add(severity[n]);
+        m_times.Add(times[n]);
     }
 
     m_showingDetails = false; // not initially