mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix crash in printer dialog, when printer is somehow not available
This commit is contained in:
@@ -81,7 +81,12 @@ begin
|
||||
else list := Mainform.ActiveGrid;
|
||||
end;
|
||||
if Assigned(list) then
|
||||
try
|
||||
list.Print(Printer, chkPrintHeader.Checked);
|
||||
except
|
||||
on E:EPrinter do
|
||||
ErrorDialog(E.Message);
|
||||
end;
|
||||
Screen.Cursor := crDefault;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user