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
This commit is contained in:
parent
88d6c98889
commit
c734a8b9a4
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user