Avoid an assert if no alignment style is specified

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-05-29 22:43:14 +00:00
parent 9a8fc68d92
commit 511bec9640

View File

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