]> git.saurik.com Git - wxWidgets.git/commitdiff
don't change wxPRINTER_CANCELLED to wxPRINTER_ERROR, bug #1635284
authorPaul Cornett <paulcor@bullseye.com>
Mon, 15 Jan 2007 02:23:13 +0000 (02:23 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 15 Jan 2007 02:23:13 +0000 (02:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/gnome/gprint.cpp

index d9e20d0662b4f1e62c8337f447ed416aafd6dc9a..3150ad5092c9abacc20cf8e65032e65e000b4845 100644 (file)
@@ -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;
     }