Each book control should say what its default orientation. Use this info
if no alignment style, otherwise assertion will happen in GetPageRect. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -268,7 +268,11 @@ wxRect wxBookCtrlBase::GetPageRect() const
|
||||
|
||||
wxPoint pt;
|
||||
wxRect rectPage(pt, GetClientSize());
|
||||
switch ( GetWindowStyle() & wxBK_ALIGN_MASK )
|
||||
long style = GetWindowStyle();
|
||||
if ( !HasFlag(wxBK_ALIGN_MASK) )
|
||||
style = GetDefaultAlignment();
|
||||
|
||||
switch ( style )
|
||||
{
|
||||
default:
|
||||
wxFAIL_MSG( _T("unexpected alignment") );
|
||||
|
||||
Reference in New Issue
Block a user