From eb6b14dc71402c42e0474779bfcd6e878383071e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 10 Sep 2013 12:12:52 +0000 Subject: [PATCH] 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 --- src/msw/listctrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.45.2