// erase the highlighting
DrawDropEffect(m_dropTarget);
+ if ( m_oldSelection )
+ {
+ m_oldSelection->SetHilight(TRUE);
+ RefreshLine(m_oldSelection);
+ m_oldSelection = (wxGenericTreeItem *)NULL;
+ }
+
// generate the drag end event
wxTreeEvent event(wxEVT_COMMAND_TREE_END_DRAG, GetId());
m_isDragging = FALSE;
m_dropTarget = (wxGenericTreeItem *)NULL;
- if ( m_oldSelection )
- {
- m_oldSelection->SetHilight(TRUE);
- RefreshLine(m_oldSelection);
- m_oldSelection = (wxGenericTreeItem *)NULL;
- }
-
ReleaseMouse();
SetCursor(m_oldCursor);