]> git.saurik.com Git - wxWidgets.git/commitdiff
Mac inherits the window variant setting on control creation, and thus on Mac this...
authorKevin Ollivier <kevino@theolliviers.com>
Sun, 8 Mar 2009 06:35:58 +0000 (06:35 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sun, 8 Mar 2009 06:35:58 +0000 (06:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/choicbkg.cpp

index d3682635dad17973c6872c49bbca3890c80259e8..dc93e2b29254981953bd4344f2cbd0afa9dec05a 100644 (file)
@@ -194,9 +194,9 @@ bool wxChoicebook::SetPageImage(size_t WXUNUSED(n), int WXUNUSED(imageId))
 
 void wxChoicebook::DoSetWindowVariant(wxWindowVariant variant)
 {
-    wxCHECK_RET( m_bookctrl, "can't be called before control creation" );
-
-    m_bookctrl->SetWindowVariant(variant);
+    wxBookCtrlBase::DoSetWindowVariant(variant);
+    if (m_bookctrl)
+        m_bookctrl->SetWindowVariant(variant);
 }
 
 void wxChoicebook::SetImageList(wxImageList *imageList)