Always use icons with wxToolbook in the notebook sample.

wxToolbook asserts and doesn't work if it has no images so always use them
with it in the sample to avoid it.

Closes #11656.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2011-03-15 11:10:46 +00:00
parent 825ce0af4f
commit bd448041e7

View File

@ -548,7 +548,8 @@ void MyFrame::RecreateBook()
m_bookCtrl->Hide();
if ( m_chkShowImages )
// wxToolbook doesn't work without icons so always use them for it.
if ( m_chkShowImages || m_type == Type_Toolbook )
{
m_bookCtrl->SetImageList(m_imageList);
}