From 8497a90d5c76abd51b7b2fa4d8f574959176f406 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 1 May 2003 19:38:42 +0000 Subject: [PATCH] set the index for BEGIN_DRAG events (patch 726308) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 4a21330a54..ea38969936 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3148,6 +3148,7 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event ) wxListEvent le( command, GetParent()->GetId() ); le.SetEventObject( GetParent() ); + le.m_itemIndex = current; le.m_pointDrag = m_dragStart; GetParent()->GetEventHandler()->ProcessEvent( le );