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:
Paul Cornett 2011-03-29 05:29:42 +00:00
parent 86b8b3ac31
commit c96acfeff6

View File

@ -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
}