From: Paul Cornett Date: Mon, 15 Jan 2007 02:23:13 +0000 (+0000) Subject: don't change wxPRINTER_CANCELLED to wxPRINTER_ERROR, bug #1635284 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a1b289f1f955ce2105b37b3e05a5d2c5a4e43983 don't change wxPRINTER_CANCELLED to wxPRINTER_ERROR, bug #1635284 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/gnome/gprint.cpp b/src/gtk/gnome/gprint.cpp index d9e20d0662..3150ad5092 100644 --- a/src/gtk/gnome/gprint.cpp +++ b/src/gtk/gnome/gprint.cpp @@ -717,7 +717,8 @@ bool wxGnomePrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt ) { gs_lgp->gnome_print_job_close( job ); g_object_unref (job); - sm_lastError = wxPRINTER_ERROR; + if (sm_lastError != wxPRINTER_CANCELLED) + sm_lastError = wxPRINTER_ERROR; return false; }