mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 09:49:22 +02:00
lcl: don't access Items of TreeView if DragOver happens during treeview destruction
git-svn-id: trunk@37372 -
This commit is contained in:
parent
e4be3b0c67
commit
94e8990aaf
@ -3624,6 +3624,8 @@ var
|
|||||||
i: integer;
|
i: integer;
|
||||||
begin
|
begin
|
||||||
Result := nil;
|
Result := nil;
|
||||||
|
if not Assigned(Items) then
|
||||||
|
Exit;
|
||||||
if (Y >= BorderWidth) and (Y < (ClientHeight - ScrollBarWidth) - BorderWidth) then
|
if (Y >= BorderWidth) and (Y < (ClientHeight - ScrollBarWidth) - BorderWidth) then
|
||||||
begin
|
begin
|
||||||
inc(Y, FScrolledTop - BorderWidth);
|
inc(Y, FScrolledTop - BorderWidth);
|
||||||
@ -3659,7 +3661,7 @@ begin
|
|||||||
if (X >= BorderWidth) and (X < ClientWidth - BorderWidth) then
|
if (X >= BorderWidth) and (X < ClientWidth - BorderWidth) then
|
||||||
begin
|
begin
|
||||||
Result := GetNodeAtY(Y);
|
Result := GetNodeAtY(Y);
|
||||||
if (Result <> nil) and (X < Result.DisplayExpandSignLeft) then
|
if Assigned(Result) and (X < Result.DisplayExpandSignLeft) then
|
||||||
Result := nil;
|
Result := nil;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user