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:
juha 2011-06-25 10:57:20 +00:00
parent 1463080eaa
commit 7fe38c1762

View File

@ -702,6 +702,7 @@ var
Images: TCustomImageList;
I: Integer;
begin
Proc(IntToStr(GetDefaultOrdValue));
Images := GetImageList;
if Assigned(Images) then
for I := 0 to Images.Count - 1 do
@ -726,6 +727,7 @@ var
R: TRect;
OldColor: TColor;
begin
Dec(Index);
Images := GetImageList;
R := ARect;
if Assigned(Images) then