mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 19:20:17 +08:00
Catch more types of potential exceptions in image preview box. See http://www.heidisql.com/forum.php?t=8980
This commit is contained in:
@ -2492,8 +2492,9 @@ begin
|
||||
IntToStr(Graphic.Width)+' x '+IntToStr(Graphic.Height)+' pixels, 100%, '+
|
||||
FormatByteNumber(StrLen);
|
||||
spltPreview.OnMoved(spltPreview);
|
||||
except on E:EInvalidGraphic do
|
||||
lblPreviewTitle.Caption := ImgType+': ' + E.Message;
|
||||
except
|
||||
on E:Exception do
|
||||
lblPreviewTitle.Caption := ImgType+': ' + E.Message + ' ('+E.ClassName+')';
|
||||
end;
|
||||
FreeAndNil(ContentStream);
|
||||
end else
|
||||
|
Reference in New Issue
Block a user