From c734a8b9a4a881b0348d686e16dbee1ba6a53424 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 25 Aug 2003 09:32:13 +0000 Subject: [PATCH] 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 --- samples/text/text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.45.2