]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for accessing m_peer during initialization.
authorKevin Ollivier <kevino@theolliviers.com>
Mon, 9 Mar 2009 04:29:42 +0000 (04:29 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Mon, 9 Mar 2009 04:29:42 +0000 (04:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/window_osx.cpp

index 7c4866e1a6fa59f8782c8a351a0e81c5a8de65fa..1bd647c363cec146b46468fed4a168c57b1504c1 100644 (file)
@@ -2082,7 +2082,7 @@ long wxWindowMac::MacGetLeftBorderSize() const
 
     SInt32 border = 0 ;
 
-    if ( m_peer->NeedsFrame() )
+    if ( m_peer && m_peer->NeedsFrame() )
     {
         if (HasFlag(wxRAISED_BORDER) || HasFlag( wxSUNKEN_BORDER) || HasFlag(wxDOUBLE_BORDER))
         {