From ae4835dbed02ae928d96fb6360f7d5c62416044b Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sat, 4 Dec 2010 15:51:57 +0100 Subject: [PATCH] libview: return early when print job was cancelled during page rendering --- libview/ev-jobs.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.43.5