]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/frame.cpp
some compilation "enhancements"
[wxWidgets.git] / src / gtk / frame.cpp
index 01b3ef24e5211510a4a1432ae0361d65e911565b..d809e69266c841908d757ab7eba50c5f07af6ac2 100644 (file)
@@ -461,9 +461,12 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height
 
     /* send size event to status bar */
 
-    wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
-    event2.SetEventObject( m_frameStatusBar );
-    m_frameStatusBar->GetEventHandler()->ProcessEvent( event2 );
+    if (m_frameStatusBar)
+    {
+        wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
+        event2.SetEventObject( m_frameStatusBar );
+        m_frameStatusBar->GetEventHandler()->ProcessEvent( event2 );
+    }
 
     m_resizing = FALSE;
 }