* Cleanup TJvXPBarItem.GetImages
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3155 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
3d09a86a15
commit
885faa4ed6
@ -732,14 +732,10 @@ end;
|
|||||||
|
|
||||||
function TJvXPBarItem.GetImages: TCustomImageList;
|
function TJvXPBarItem.GetImages: TCustomImageList;
|
||||||
begin
|
begin
|
||||||
Result := nil;
|
Result := FImageList;
|
||||||
if Assigned(FImageList) then
|
if (Result = nil) and Assigned(Action) then
|
||||||
Result := FImageList
|
Result := TAction(Action).ActionList.Images;
|
||||||
else
|
if Result = nil then
|
||||||
if Assigned(Action) and Assigned(TAction(Action).ActionList.Images) then
|
|
||||||
Result := TAction(Action).ActionList.Images
|
|
||||||
else
|
|
||||||
if Assigned(FWinXPBar.FImageList) then
|
|
||||||
Result := FWinXPBar.FImageList;
|
Result := FWinXPBar.FImageList;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user