]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/choicbkg.cpp
Never overflow the output buffer in wxBase64Decode().
[wxWidgets.git] / src / generic / choicbkg.cpp
index d3682635dad17973c6872c49bbca3890c80259e8..c21023c25ba01f130c7d93b87031d3023e579629 100644 (file)
@@ -176,14 +176,14 @@ wxString wxChoicebook::GetPageText(size_t n) const
 
 int wxChoicebook::GetPageImage(size_t WXUNUSED(n)) const
 {
-    wxFAIL_MSG( _T("wxChoicebook::GetPageImage() not implemented") );
+    wxFAIL_MSG( wxT("wxChoicebook::GetPageImage() not implemented") );
 
     return wxNOT_FOUND;
 }
 
 bool wxChoicebook::SetPageImage(size_t WXUNUSED(n), int WXUNUSED(imageId))
 {
-    wxFAIL_MSG( _T("wxChoicebook::SetPageImage() not implemented") );
+    wxFAIL_MSG( wxT("wxChoicebook::SetPageImage() not implemented") );
 
     return false;
 }
@@ -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)