lcl: fix bug with TabControl ImageIndex retrieving based on instructions of Robin Hoo (issue #0015421)

git-svn-id: trunk@24020 -
This commit is contained in:
paul 2010-03-16 03:24:39 +00:00
parent 093ec32e60
commit 0118bd4b2a

View File

@ -481,9 +481,9 @@ end;
function TCustomTabControl.GetImageIndex(ATabIndex: Integer): Integer;
begin
Result := TabIndex;
Result := ATabIndex;
if Assigned(FOnGetImageIndex) then
FOnGetImageIndex(Self, TabIndex, Result);
FOnGetImageIndex(Self, ATabIndex, Result);
end;
procedure TCustomTabControl.Loaded;