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
wxListItem info;
info.m_mask = wxLIST_MASK_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);
info.m_col = column;
return SetItem(info);