From 6a623422ecbead1a2f19a486f14ab174cf7b44f0 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Sun, 17 Sep 2006 01:30:26 +0000 Subject: [PATCH] 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 --- src/mac/carbon/listctrl_mac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mac/carbon/listctrl_mac.cpp b/src/mac/carbon/listctrl_mac.cpp index a3dc96b13b..22db0d1ae6 100644 --- a/src/mac/carbon/listctrl_mac.cpp +++ b/src/mac/carbon/listctrl_mac.cpp @@ -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){ -- 2.45.2