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:
Kinaou Hervé 2017-05-10 17:49:49 +02:00 committed by Vadim Zeitlin
parent bf5a564c9a
commit 4e467d818b

View File

@ -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))
{