Open GoogleCodeExporter opened 9 years ago
[deleted comment]
Located the bug in the function
TCustomVirtualExplorerEasyListview.AddCustomItem:
The InsertCustom method is called with a wrong (first) parameter.
When 'Group' has been specified (not nil), it has to use the Group.Items
NOT Groups[0].Items !
From Line #4231:
if Assigned(Group) then
Result := Groups[0].Items.InsertCustom(Groups[0].Items.Count, ItemClass) as TExplorerItem
else begin
if Grouped then
Result := FindGroup(NS).Items.AddCustom(ItemClass, nil) as TExplorerItem
else
Result := Items.AddCustom(ItemClass, nil) as TExplorerItem;
end;
The correct code would be:
if Assigned(Group) then
// ** FIX ** 10/12/2012 tommiii@gmx.at **
Result := Group.Items.InsertCustom(Group.Items.Count, ItemClass) as TExplorerItem
else begin
if Grouped then
Result := FindGroup(NS).Items.AddCustom(ItemClass, nil) as TExplorerItem
else
Result := Items.AddCustom(ItemClass, nil) as TExplorerItem;
end;
Please correct the bug in the next release.
Thanks!
Best Regards,
Tom I.
Original comment by tomm...@gmx.at
on 11 Oct 2012 at 11:16
Original issue reported on code.google.com by
tomm...@gmx.at
on 11 Oct 2012 at 11:07