mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 01:02:40 +02:00
LCL: Fix Sigsegv when assigning images to Tlistview columns. Issue #25844, patch from ocean.
git-svn-id: trunk@44454 -
This commit is contained in:
parent
41f1295739
commit
0cf581f13c
@ -1484,7 +1484,9 @@ begin
|
||||
end;
|
||||
end else
|
||||
if (lWinControl <> nil) and (lWinControl is TListView) and
|
||||
(TListView(lWinControl).ViewStyle = vsReport) then
|
||||
(TListView(lWinControl).ViewStyle = vsReport) and
|
||||
(PDrawItemStruct(LParam)^.ctlType = ODT_LISTVIEW) and
|
||||
(TListView(lWinControl).OwnerDraw) then
|
||||
begin
|
||||
if PDrawItemStruct(LParam)^.itemID <> dword(-1) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user