Menu

#7 Drag project file to top level gives infinite loop

open
nobody
None
5
2014-02-04
2004-02-19
Hugh Gibson
No

If you set up a group, then drag a file to the top level of
the tree, the program goes into an infinite loop.

This is caused by CProjectViewBar::GetGroupPath which
doesn't handle the case where hItem is the root item. I
modified the first few lines of code there to:

string groupPath;
//
// If the item is the root, then the group path

is blank
//
if (hItem == m_ProjectTree.GetRootItem())
// at root?
return groupPath;

// empty path
//
// Find path for deeper down
//
groupPath = m\_ProjectTree.GetItemText

(hItem);

and it 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.