mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 20:56:14 +02:00
IDE: Fix error when Actionlist has no TImageList assigned. Patch from August Klein, issue #19566
git-svn-id: trunk@31379 -
This commit is contained in:
parent
1463080eaa
commit
7fe38c1762
@ -702,6 +702,7 @@ var
|
|||||||
Images: TCustomImageList;
|
Images: TCustomImageList;
|
||||||
I: Integer;
|
I: Integer;
|
||||||
begin
|
begin
|
||||||
|
Proc(IntToStr(GetDefaultOrdValue));
|
||||||
Images := GetImageList;
|
Images := GetImageList;
|
||||||
if Assigned(Images) then
|
if Assigned(Images) then
|
||||||
for I := 0 to Images.Count - 1 do
|
for I := 0 to Images.Count - 1 do
|
||||||
@ -726,6 +727,7 @@ var
|
|||||||
R: TRect;
|
R: TRect;
|
||||||
OldColor: TColor;
|
OldColor: TColor;
|
||||||
begin
|
begin
|
||||||
|
Dec(Index);
|
||||||
Images := GetImageList;
|
Images := GetImageList;
|
||||||
R := ARect;
|
R := ARect;
|
||||||
if Assigned(Images) then
|
if Assigned(Images) then
|
||||||
|
Loading…
Reference in New Issue
Block a user