Fix retrieving page image index in wxListbook
wxListbook::GetPageImage() always returned -1. Fix this by defining the mask properly before calling wxListCtrl::GetItem(). Closes #17858.
This commit is contained in:
parent
bf5a564c9a
commit
4e467d818b
@ -237,6 +237,7 @@ int wxListbook::GetPageImage(size_t n) const
|
||||
{
|
||||
wxListItem item;
|
||||
item.SetId(n);
|
||||
item.SetMask(wxLIST_MASK_IMAGE);
|
||||
|
||||
if (GetListView()->GetItem(item))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user