From: Carlos Garcia Campos Date: Sat, 4 Dec 2010 14:51:57 +0000 (+0100) Subject: libview: return early when print job was cancelled during page rendering X-Git-Tag: EVINCE_2_91_4~56 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=ae4835dbed02ae928d96fb6360f7d5c62416044b;p=evince.git libview: return early when print job was cancelled during page rendering --- diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c index 3a74876c..816a56bb 100644 --- a/libview/ev-jobs.c +++ b/libview/ev-jobs.c @@ -1560,6 +1560,9 @@ ev_job_print_run (EvJob *job) ev_document_doc_mutex_unlock (); + if (g_cancellable_is_cancelled (job->cancellable)) + return FALSE; + cr_status = cairo_status (job_print->cr); if (cr_status == CAIRO_STATUS_SUCCESS) { ev_job_succeeded (job);