]> git.saurik.com Git - wxWidgets.git/commitdiff
set the index for BEGIN_DRAG events (patch 726308)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 May 2003 19:38:42 +0000 (19:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 May 2003 19:38:42 +0000 (19:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 51af844c6744f9036136eac221334538e9e48315..ea8d28ff9ed126576ab5f87113057cfdddae8420 100644 (file)
@@ -3203,6 +3203,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 );