mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: add Exception Handle in TPixMapManager.CheckAddFileUniqueIcon() for Debug, issue #2519
This commit is contained in:
parent
7bc7f6f687
commit
5ec21c44c6
1 changed files with 6 additions and 0 deletions
|
|
@ -1200,7 +1200,13 @@ begin
|
|||
Exit;
|
||||
|
||||
image:= getBestNSImageWithSize(image, AIconSize);
|
||||
if image = nil then
|
||||
raise Exception.Create( AFullPath + ' in CheckAddFileUniqueIcon() Exception: step 1' );
|
||||
|
||||
bmpBitmap:= NSImageToTBitmap(image);
|
||||
if bmpBitmap = nil then
|
||||
raise Exception.Create( AFullPath + ' in CheckAddFileUniqueIcon() Exception: step 2' );
|
||||
|
||||
Result := FPixmapList.Add(bmpBitmap);
|
||||
FPixmapsFileNames.Add(AFullPath, Pointer(Result));
|
||||
finally
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue