Drag project file to top level gives infinite loop
Brought to you by:
nealj
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.