Drag project item and drop on file gives bad group
Brought to you by:
nealj
If you drag a project item and drop it on a file, a group
is created based on the target file.
CProjectViewBar::OnProjectEndDrag has code to detect
this, but it doesn't work - probably because a DWORD
(result of m_ProjectTree.GetItemData) is being
compared with -1.
I changed the line:
if (m_ProjectTree.GetItemData(hItem) > -1)
to
if (m_ProjectTree.GetItemData(hItem) != -1)
and the code works correctly now.