mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 21:19:24 +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;
|
ResName: string;
|
||||||
begin
|
begin
|
||||||
c := ColumnFromGridColumn(AColumnIndex);
|
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
|
begin
|
||||||
ImgIndex := c.Title.FImageIndex;
|
ImgIndex := c.Title.FImageIndex;
|
||||||
ImgLayout := c.Title.ImageLayout;
|
ImgLayout := c.Title.ImageLayout;
|
||||||
|
Loading…
Reference in New Issue
Block a user