mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 23:18:10 +02:00
LCL: grids: fix potential Access Violation
git-svn-id: trunk@57797 -
This commit is contained in:
parent
ad5ec661f2
commit
42b24279aa
@ -5388,7 +5388,7 @@ var
|
||||
ResName: string;
|
||||
begin
|
||||
c := ColumnFromGridColumn(AColumnIndex);
|
||||
if (c <> nil) and InRange(c.Title.FImageIndex, 0, FTitleImageList.Count - 1) then
|
||||
if (c <> nil) and (FTitleImageList <> nil) and InRange(c.Title.FImageIndex, 0, FTitleImageList.Count - 1) then
|
||||
begin
|
||||
ImgIndex := c.Title.FImageIndex;
|
||||
ImgLayout := c.Title.ImageLayout;
|
||||
|
Loading…
Reference in New Issue
Block a user