summaryrefslogtreecommitdiff
path: root/libview/ev-jobs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libview/ev-jobs.c')
-rw-r--r--libview/ev-jobs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index 84ab83ae..c95e7715 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -1729,6 +1729,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);