Initialize wxListItem::m_itemId to -1, not 0.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Jan 2012 12:51:37 +0000 (12:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Jan 2012 12:51:37 +0000 (12:51 +0000)
commit1e40bd4c74cd63318b41adebd5afe63e56b54a5e
treee756d8596cfdd2204d17d9731341cf1ff6908907
parent86d19346c5e0abd5c2575d0a305ddc48f05fddf8
Initialize wxListItem::m_itemId to -1, not 0.

Currently we have two redundant pieces of data in wxListEvent: m_itemIndex and
m_item.m_itemId. The former is initialized to -1 by default which makes sense
as it means "no item". But the latter was 0 by default which not only didn't
make sense but also made it inconsistent with m_itemIndex for the events which
really didn't have any associated item.

Fix this by initializing m_itemId to -1 as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/listbase.h