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:
committed by
Vadim Zeitlin
parent
bf5a564c9a
commit
4e467d818b
@@ -237,6 +237,7 @@ int wxListbook::GetPageImage(size_t n) const
|
|||||||
{
|
{
|
||||||
wxListItem item;
|
wxListItem item;
|
||||||
item.SetId(n);
|
item.SetId(n);
|
||||||
|
item.SetMask(wxLIST_MASK_IMAGE);
|
||||||
|
|
||||||
if (GetListView()->GetItem(item))
|
if (GetListView()->GetItem(item))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user