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
heightMax *= 9;
heightMax /= 10;
- m_listctrl->SetSize(wxDefaultSize.x, wxMin(height, heightMax));
+ m_listctrl->SetSize(wxDefaultCoord, wxMin(height, heightMax));
}
void wxLogDialog::OnListSelect(wxListEvent& event)
SetSizeHints(size.x, size.y, m_maxWidth, m_maxHeight);
// don't change the width when expanding/collapsing
- SetSize(wxDefaultSize.x, size.y);
+ SetSize(wxDefaultCoord, size.y);
#ifdef __WXGTK__
// VS: this is neccessary in order to force frame redraw under