From: Julian Smart Date: Mon, 25 Aug 2003 09:32:13 +0000 (+0000) Subject: Minor change in case m_log is null X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c734a8b9a4a881b0348d686e16dbee1ba6a53424 Minor change in case m_log is null git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/text/text.cpp b/samples/text/text.cpp index 6c8c47677a..a2509fbc41 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -965,7 +965,8 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) void MyPanel::OnSize( wxSizeEvent &event ) { wxSize client_area( GetClientSize() ); - m_log->SetSize( 0, 260, client_area.x, client_area.y - 260 ); + if (m_log) + m_log->SetSize( 0, 260, client_area.x, client_area.y - 260 ); event.Skip(); }