]> www.fi.muni.cz Git - evince.git/commitdiff
libview: return early when print job was cancelled during page rendering
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 4 Dec 2010 14:51:57 +0000 (15:51 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 4 Dec 2010 14:56:50 +0000 (15:56 +0100)
libview/ev-jobs.c

index 3a74876c694e3c5c28d31ecb55d84152d938e64d..816a56bbb3c7987351291af6d82f778eb0c41243 100644 (file)
@@ -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);