]> git.saurik.com Git - wxWidgets.git/commitdiff
Set the mouse pos for the drag events
authorRobin Dunn <robin@alldunn.com>
Wed, 2 Mar 2005 18:31:54 +0000 (18:31 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 2 Mar 2005 18:31:54 +0000 (18:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 80e77ad8aa2aa0bb48e7d4ec1eb1de2711791445..728cbe2f54f55ac900ac146924531c934f0b94a0 100644 (file)
@@ -3100,6 +3100,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
         wxTreeEvent nevent( command, GetId() );
         nevent.m_item = m_current;
         nevent.SetEventObject(this);
+        nevent.SetPoint(pt);
 
         // by default the dragging is not supported, the user code must
         // explicitly allow the event for it to take place