don't crash on error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
86b8b3ac31
commit
c96acfeff6
@ -667,8 +667,8 @@ int wxGtkPrintDialog::ShowModal()
|
||||
}
|
||||
else if (response == GTK_PRINT_OPERATION_RESULT_ERROR)
|
||||
{
|
||||
wxLogError(_("Error while printing: ") + wxString(gError ? gError->message : "???"));
|
||||
g_error_free (gError);
|
||||
wxLogError(_("Error while printing: ") + wxString::Format(_("%s"), gError->message));
|
||||
return wxID_NO; // We use wxID_NO because there is no wxID_ERROR available
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user