summarylogtreecommitdiffstats
path: root/0cc65e2f420af45f78d190ac2af64810a148bb31.patch
diff options
context:
space:
mode:
authorAlexander F. Rødseth2019-03-27 10:18:16 +0100
committerAlexander F. Rødseth2019-03-27 10:18:16 +0100
commitf510ae4ba793eb9c338841f1123658cdd191da2b (patch)
treeac2b5525460e859448f55df777a2390180d89d87 /0cc65e2f420af45f78d190ac2af64810a148bb31.patch
downloadaur-f510ae4ba793eb9c338841f1123658cdd191da2b.tar.gz
Move from [community] to AUR in connection with the spring cleaning
Diffstat (limited to '0cc65e2f420af45f78d190ac2af64810a148bb31.patch')
-rw-r--r--0cc65e2f420af45f78d190ac2af64810a148bb31.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/0cc65e2f420af45f78d190ac2af64810a148bb31.patch b/0cc65e2f420af45f78d190ac2af64810a148bb31.patch
new file mode 100644
index 00000000000..de5a64c3704
--- /dev/null
+++ b/0cc65e2f420af45f78d190ac2af64810a148bb31.patch
@@ -0,0 +1,41 @@
+From 0cc65e2f420af45f78d190ac2af64810a148bb31 Mon Sep 17 00:00:00 2001
+From: Luis Menina <liberforce@freeside.fr>
+Date: Mon, 11 Mar 2013 00:00:44 +0000
+Subject: Don't crash on an empty print preview, just provide an empty preview.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=581282
+---
+diff --git a/src/planner-print-job.c b/src/planner-print-job.c
+index 6334037..96267a0 100644
+--- a/src/planner-print-job.c
++++ b/src/planner-print-job.c
+@@ -237,17 +237,7 @@ print_job_draw_page (GtkPrintOperation *operation,
+
+ l = priv->views;
+
+- /* Abort if there is nothing to print.
+- *
+- * A better solution would be to set the number of pages to print to 0
+- * in print_job_begin_print, but 0 is not a valid value for
+- * gtk_print_operation_set_n_pages.
+- */
+- if(!l) {
+- return;
+- }
+-
+- while (!page_found) {
++ while (! page_found && l != NULL) {
+ v = PLANNER_VIEW (l->data);
+
+ pages_in_view = planner_view_print_get_n_pages (v);
+@@ -258,8 +248,6 @@ print_job_draw_page (GtkPrintOperation *operation,
+ } else {
+ page_nr -= pages_in_view;
+ l = l->next;
+-
+- g_assert (l != NULL);
+ }
+ }
+ }
+--
+cgit v0.9.2