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:
@@ -1558,7 +1558,7 @@ OSStatus wxMacListCtrlItem::GetSetData( wxMacDataItemBrowserControl *owner ,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int imgIndex = item->GetImage();
|
int imgIndex = item->GetImage();
|
||||||
if (imgIndex != -1){
|
if ( (item->GetMask() & wxLIST_MASK_IMAGE) ){
|
||||||
wxListCtrl* list = wxDynamicCast( owner->GetPeer() , wxListCtrl );
|
wxListCtrl* list = wxDynamicCast( owner->GetPeer() , wxListCtrl );
|
||||||
wxImageList* imageList = list->GetImageList(wxIMAGE_LIST_SMALL);
|
wxImageList* imageList = list->GetImageList(wxIMAGE_LIST_SMALL);
|
||||||
if (imageList && imageList->GetImageCount() > 0){
|
if (imageList && imageList->GetImageCount() > 0){
|
||||||
|
Reference in New Issue
Block a user