Menu

#8 Drag project item and drop on file gives bad group

open
nobody
None
5
2013-01-14
2004-02-19
Hugh Gibson
No

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.

Discussion


Log in to post a comment.