]> git.saurik.com Git - wxWidgets.git/commitdiff
Accidently checked for invalid image index rather than using the mask.
authorKevin Ollivier <kevino@theolliviers.com>
Sun, 17 Sep 2006 01:30:26 +0000 (01:30 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sun, 17 Sep 2006 01:30:26 +0000 (01:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/listctrl_mac.cpp

index a3dc96b13b6a0a70335971ec606e4886cfefedb5..22db0d1ae61d60b0aac8d5c214c30e58e866f8af 100644 (file)
@@ -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){