diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index c472a5fb2c..a46ffce6b9 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -164,13 +164,13 @@ bool MyApp::OnInit() MyFrame::MyFrame(const wxChar *title) : wxFrame(NULL, wxID_ANY, title) { - if (wxSystemSettings::GetScreenType() > wxSYS_SCREEN_SMALL) - SetSize(wxSize(450, 340)); - m_listCtrl = NULL; m_logWindow = NULL; m_smallVirtual = false; + if (wxSystemSettings::GetScreenType() > wxSYS_SCREEN_SMALL) + SetSize(wxSize(450, 340)); + // Give it an icon SetIcon( wxICON(mondrian) );