UPD: Viewer - Print error message to console when cannot load image

This commit is contained in:
Alexander Koblov 2020-05-24 16:22:35 +00:00
commit 2dfa24a57e

View file

@ -2230,7 +2230,11 @@ begin
end;
AdjustImageSize;
except
Exit(False);
on E: Exception do
begin
DCDebug(E.Message);
Exit(False);
end;
end;
end
else
@ -2253,7 +2257,11 @@ begin
btnNextGifFrame.Visible:= True;
btnPrevGifFrame.Visible:= True;
except
Exit(False);
on E: Exception do
begin
DCDebug(E.Message);
Exit(False);
end;
end;
end;
ImgEdit:= False;