User forums > General (but related to Code::Blocks)
[bug report] bug when moving file(s) from a virtual folder to another
Jenna:
--- Quote from: Biplab on April 03, 2008, 07:36:30 am ---Will look into this today. :)
--- End quote ---
Hi Biplab,
the crash happens in line 280 in "projectfile.cpp" when the new image should be set in the tree after changing the files content.
--- Code: ---tree->SetItemImage(m_TreeItemId, (int)state, wxTreeItemIcon_Normal);
--- End code ---
"m_TreeItemId" only gets set when the tree is build (or rebuild), so I think it's invalid after dragging the node.
The crash does not appear when the project is saved before editing (after saving the project, C::B does a rebuild of the tree).
So I think the easiest way is to rebuild the tree after dragging is completed.
Another solution would be to renew "m_TreeItemId" only, but I haven't got the time to figure out the right place for doing this, so I went the easy way.
Jenna:
--- Quote from: jens on April 03, 2008, 07:32:54 am ---... I can post it here if it's done ...
--- End quote ---
A patched version is in my repo (see signature).
It's based on svn4984 and therefore called "*1.0svn4984-1*.deb" .
r0d:
Thank you very much, for this. But sorry (I am ashamed) I won't use it. I'm not accustomed to linux yet, and i don't have the time to start the process of modifying my IDE. In a few month i will, when i'll be more "zen" with linux.
Thank you one more time.
Jenna:
If you follow the instructions on my website you can use "apt-get", "synaptic", "aptitude" or any other "apt"-frontend I perhaps don't know to update C::B.
The only thing is to remove the 8.02-version of C::B before (or to force downgrade), because the package-managers only look for version numbers (1.0 for svn and 8.02 for stable) and not for the package date.
Biplab:
Thanks r0d for the pointing this bug and Jens for the patch. Fixed in revision 4985. :)
Navigation
[0] Message Index
[*] Previous page
Go to full version