Home » U++ Library support » TreeCtrl » A [TreeCtrl] bug
Re: A [TreeCtrl] bug [message #14558 is a reply to message #14549] |
Mon, 03 March 2008 19:17   |
 |
mirek
Messages: 14263 Registered: November 2005
|
Ultimate Member |
|
|
Thanks for the bug report!
Well, that is not bad, but IMO
int TreeCtrl::Find(Value key)
{
for(int i = 0; i < item.GetCount(); i++)
if(!item[i].free && Get(i) == key)
return i;
return -1;
}
is correct fix (well, Null key is unusual, but not impossible).
Note that Null asignments there are rather intended to release the memory....
Please check whether things work here (by replacing Find and commenting key = Null)!
Mirek
[Updated on: Mon, 03 March 2008 19:19] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Jul 01 07:21:52 CEST 2025
Total time taken to generate the page: 0.03666 seconds
|