]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid an assert if no alignment style is specified
authorRobin Dunn <robin@alldunn.com>
Mon, 29 May 2006 22:43:14 +0000 (22:43 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 29 May 2006 22:43:14 +0000 (22:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/notebmac.cpp

index 28e18d9174f219f93d7039593cb856a2fa0aca07..04c84ae3cdb8a29914bfd3f505186aff6af87387 100644 (file)
@@ -80,6 +80,9 @@ bool wxNotebook::Create( wxWindow *parent,
 {
     m_macIsUserPane = false ;
 
 {
     m_macIsUserPane = false ;
 
+    if (! (style & wxBK_ALIGN_MASK))
+        style |= wxBK_TOP;
+    
     if ( !wxNotebookBase::Create( parent, id, pos, size, style, name ) )
         return false;
 
     if ( !wxNotebookBase::Create( parent, id, pos, size, style, name ) )
         return false;