Mac inherits the window variant setting on control creation, and thus on Mac this always asserts, so remove the assert to fix #10559.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -194,8 +194,8 @@ bool wxChoicebook::SetPageImage(size_t WXUNUSED(n), int WXUNUSED(imageId))
|
|||||||
|
|
||||||
void wxChoicebook::DoSetWindowVariant(wxWindowVariant variant)
|
void wxChoicebook::DoSetWindowVariant(wxWindowVariant variant)
|
||||||
{
|
{
|
||||||
wxCHECK_RET( m_bookctrl, "can't be called before control creation" );
|
wxBookCtrlBase::DoSetWindowVariant(variant);
|
||||||
|
if (m_bookctrl)
|
||||||
m_bookctrl->SetWindowVariant(variant);
|
m_bookctrl->SetWindowVariant(variant);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user