]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor change in case m_log is null
authorJulian Smart <julian@anthemion.co.uk>
Mon, 25 Aug 2003 09:32:13 +0000 (09:32 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 25 Aug 2003 09:32:13 +0000 (09:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/text/text.cpp

index 6c8c47677a9959a3c58958ff2f48b06bb09c7949..a2509fbc4100b52f4387a26ee7fdb794b983e4a4 100644 (file)
@@ -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();
 }