mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 09:19:17 +02:00
LCL: TCustomTreeView.CanChange(Node: TTreeNode) check if Node is nil before calling FOnChanging().patch by Juha Manninen fixes #16632.
git-svn-id: trunk@26199 -
This commit is contained in:
parent
2ceba89242
commit
fd33466244
@ -4637,7 +4637,7 @@ end;
|
||||
function TCustomTreeView.CanChange(Node: TTreeNode): Boolean;
|
||||
begin
|
||||
Result := True;
|
||||
if Assigned(FOnChanging) then FOnChanging(Self, Node, Result);
|
||||
if Assigned(Node) and Assigned(FOnChanging) then FOnChanging(Self, Node, Result);
|
||||
end;
|
||||
|
||||
procedure TCustomTreeView.Change(Node: TTreeNode);
|
||||
|
Loading…
Reference in New Issue
Block a user