You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Node is Pointer(Self) in GetNodeData, it should return nil, instead of returning @Node.Data, ie...
the code for GetNodeData should be updated to:
function TBaseVirtualTree.GetNodeData(Node: PVirtualNode): Pointer;
// Returns the address of the user defined data area in the node.
begin
Assert((FNodeDataSize > 0) or not Assigned(Node), 'NodeDataSize not initialized.');
if (FNodeDataSize <= 0) or (Node = nil) or (Node = FRoot) or (Node = Pointer(Self)) then
Result := nil
else
begin
Result := @Node.Data;
Include(Node.States, vsOnFreeNodeCallRequired); // We now need to call OnFreeNode, see bug #323
end;
end;
The text was updated successfully, but these errors were encountered:
Could you please ask for this issue in the JAM version (https://github.com/JAM-Software/Virtual-TreeView)? The problem is that if I would change the code here then the two versions would diverge.
When Node is Pointer(Self) in GetNodeData, it should return nil, instead of returning @Node.Data, ie...
the code for GetNodeData should be updated to:
The text was updated successfully, but these errors were encountered: