]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wrong in wxListCtrl::SetItemColumnImage() in r74716.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Sep 2013 12:12:52 +0000 (12:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Sep 2013 12:12:52 +0000 (12:12 +0000)
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

index 4ffa6e596d87ab3b485ca5888862bd6ab8554e2f..0772db7a252110b259bb35a37ff69802bdbff7cf 100644 (file)
@@ -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);