mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:39:15 +02:00
Fix crash from "IDE: Show icons in the tree of key mapping options. Issue #35923. Patch from FTurtle"
git-svn-id: trunk@64362 -
This commit is contained in:
parent
746dea29a9
commit
8c10092997
@ -437,7 +437,7 @@ var
|
|||||||
IDECommand: TIDECommand;
|
IDECommand: TIDECommand;
|
||||||
begin
|
begin
|
||||||
IDECommand:=IDECommandList.FindIDECommand(AKeyRelation.Command);
|
IDECommand:=IDECommandList.FindIDECommand(AKeyRelation.Command);
|
||||||
if IDECommand.UserCount=0 then
|
if (IDECommand=nil) or (IDECommand.UserCount=0) then
|
||||||
Exit(imgKeyItem);
|
Exit(imgKeyItem);
|
||||||
Result:=IDECommand.Users[0].ImageIndex;
|
Result:=IDECommand.Users[0].ImageIndex;
|
||||||
if Result=-1 then
|
if Result=-1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user