mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 00:00:16 +02:00
IDE: Prevent total crash when trying to load a non-existent image to IDEimages.
git-svn-id: trunk@32815 -
This commit is contained in:
parent
166844b8e5
commit
252e2b9acc
@ -169,8 +169,12 @@ begin
|
||||
else
|
||||
Exit;
|
||||
end;
|
||||
|
||||
Result := List.AddLazarusResource(ImageName);
|
||||
try
|
||||
Result := List.AddLazarusResource(ImageName);
|
||||
except
|
||||
on E: Exception do
|
||||
DebugLn('While loading IDEImages: ' + e.Message);
|
||||
end;
|
||||
Names.AddObject(ImageName, TObject(PtrInt(Result)));
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user