Add wxWithImages::GetImageCount() and HasImages() helpers
These functions allow avoiding using wxImageList explicitly in a couple of places. No real changes, this just prepares for adding new API not based on wxImageList.
This commit is contained in:
@@ -412,9 +412,9 @@ int BookWidgetsPage::GetTextValue(wxTextCtrl *text) const
|
||||
|
||||
int BookWidgetsPage::GetIconIndex() const
|
||||
{
|
||||
if ( m_imageList )
|
||||
if ( m_book )
|
||||
{
|
||||
int nImages = m_imageList->GetImageCount();
|
||||
const int nImages = m_book->GetImageCount();
|
||||
if ( nImages > 0 )
|
||||
{
|
||||
return m_book->GetPageCount() % nImages;
|
||||
|
||||
Reference in New Issue
Block a user