mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-07 13:20:53 +01: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