From: Paul Cornett Date: Tue, 29 Mar 2011 05:29:42 +0000 (+0000) Subject: don't crash on error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c96acfeff6d057aace5b0870acc999218d6ac1cd don't crash on error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/print.cpp b/src/gtk/print.cpp index 2772055c87..39c517b0fd 100644 --- a/src/gtk/print.cpp +++ b/src/gtk/print.cpp @@ -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 }