mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 16:38:02 +02:00
TListView: fix potential AV in SetDropTarget. Issue #19083.
(cherry picked from commit 4204fa7a65
)
This commit is contained in:
parent
796a8090d4
commit
f1feaaf4e0
@ -1629,7 +1629,8 @@ end;
|
||||
procedure TCustomListView.SetDropTarget(const AValue: TListItem);
|
||||
begin
|
||||
if not HandleAllocated then Exit;
|
||||
TWSCustomListViewClass(WidgetSetClass).ItemSetState(Self, AValue.Index, AValue, lisDropTarget, True);
|
||||
if AValue <> nil then
|
||||
TWSCustomListViewClass(WidgetSetClass).ItemSetState(Self, AValue.Index, AValue, lisDropTarget, True);
|
||||
end;
|
||||
|
||||
procedure TCustomListView.SetFocused(const AValue: TListItem);
|
||||
|
Loading…
Reference in New Issue
Block a user