mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 00:12:35 +02:00
TurboPower_iPro: Fix list index error if ENTER is pressed and no TabItems are present
git-svn-id: trunk@52101 -
This commit is contained in:
parent
be0ae8bc36
commit
be0a2f9c82
@ -27,7 +27,7 @@ implementation
|
||||
|
||||
function TIpHtmlTabList.GetTabItem: TObject;
|
||||
begin
|
||||
if FIndex = -1 then
|
||||
if (FIndex = -1) or (FIndex >= Count) then
|
||||
Exit(nil)
|
||||
else
|
||||
Result := TObject(Items[FIndex]);
|
||||
|
Loading…
Reference in New Issue
Block a user