]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed crash introduced in rev. 187 for all non-MSW platforms
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 18 Mar 2006 16:53:42 +0000 (16:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 18 Mar 2006 16:53:42 +0000 (16:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/listctrl/listtest.cpp

index c472a5fb2cad99e30af28b246a3ecf068c75dea7..a46ffce6b9bf5ec6a0bd602b4da0f34a93c7a69b 100644 (file)
@@ -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) );