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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.