mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-18 23:48:42 +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;
|
function TIpHtmlTabList.GetTabItem: TObject;
|
||||||
begin
|
begin
|
||||||
if FIndex = -1 then
|
if (FIndex = -1) or (FIndex >= Count) then
|
||||||
Exit(nil)
|
Exit(nil)
|
||||||
else
|
else
|
||||||
Result := TObject(Items[FIndex]);
|
Result := TObject(Items[FIndex]);
|
||||||
|
Loading…
Reference in New Issue
Block a user