From: Vadim Zeitlin Date: Tue, 10 Sep 2013 12:12:52 +0000 (+0000) Subject: Fix wrong in wxListCtrl::SetItemColumnImage() in r74716. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eb6b14dc71402c42e0474779bfcd6e878383071e Fix wrong in wxListCtrl::SetItemColumnImage() in r74716. The check for "image == -1" was added to a wrong line. See #15421. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 4ffa6e596d..0772db7a25 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -951,8 +951,8 @@ bool wxListCtrl::SetItemColumnImage(long item, long column, int image) wxListItem info; info.m_mask = wxLIST_MASK_IMAGE; - info.m_image = image; - info.m_itemId = item == -1 ? I_IMAGENONE : image; + info.m_image = image == -1 ? I_IMAGENONE : image; + info.m_itemId = item; info.m_col = column; return SetItem(info);