]> git.saurik.com Git - wxWidgets.git/commitdiff
gtk crash fix
authorBenjamin Williams <bwilliams@kirix.com>
Sun, 12 Nov 2006 21:01:38 +0000 (21:01 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Sun, 12 Nov 2006 21:01:38 +0000 (21:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibook.cpp

index 561121d17071fc7f5b93a7350b25edd19384183a..fe3d5f9a56cdf88e248cc5590d24bfae4bac4312 100644 (file)
@@ -2452,7 +2452,10 @@ void wxAuiNotebook::SetUniformBitmapSize(const wxSize& size)
     m_requested_bmp_size = size;
     
     // if window is already initialized, recalculate the tab height
     m_requested_bmp_size = size;
     
     // if window is already initialized, recalculate the tab height
-    SetTabCtrlHeight(CalculateTabCtrlHeight());
+    if (m_dummy_wnd)
+    {
+        SetTabCtrlHeight(CalculateTabCtrlHeight());
+    }
 }
 
 void wxAuiNotebook::SetTabCtrlHeight(int height)
 }
 
 void wxAuiNotebook::SetTabCtrlHeight(int height)