Accidently checked for invalid image index rather than using the mask.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e2bc1d6981
commit
6a623422ec
@ -1558,7 +1558,7 @@ OSStatus wxMacListCtrlItem::GetSetData( wxMacDataItemBrowserControl *owner ,
|
||||
}
|
||||
|
||||
int imgIndex = item->GetImage();
|
||||
if (imgIndex != -1){
|
||||
if ( (item->GetMask() & wxLIST_MASK_IMAGE) ){
|
||||
wxListCtrl* list = wxDynamicCast( owner->GetPeer() , wxListCtrl );
|
||||
wxImageList* imageList = list->GetImageList(wxIMAGE_LIST_SMALL);
|
||||
if (imageList && imageList->GetImageCount() > 0){
|
||||
|
Loading…
Reference in New Issue
Block a user