mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 23:08:05 +02:00
Merge branch 'exttool-rangecheck' into 'main'
IDE: Fixed out-of-bounds error when calling a non-existent "external tool" with a shortcut See merge request freepascal.org/lazarus/lazarus!301
This commit is contained in:
commit
ea8dad6089
@ -547,8 +547,10 @@ var
|
||||
Tool: TIDEExternalToolOptions;
|
||||
begin
|
||||
Result:=mrCancel;
|
||||
Item:=Items[Index];
|
||||
if (Index < 0) or (Index >= fItems.Count) then
|
||||
exit;
|
||||
|
||||
Item:=Items[Index];
|
||||
Tool:=TIDEExternalToolOptions.Create;
|
||||
try
|
||||
Tool.Title:=Item.Title;
|
||||
|
Loading…
Reference in New Issue
Block a user