From 13128254384341f55e1fb8eda490fab9e0fd8a9b Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 7 Dec 2012 14:36:24 +0100 Subject: [PATCH] Draw white background on correct cairo instance --- print.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/print.c b/print.c index 37c304d..b806262 100644 --- a/print.c +++ b/print.c @@ -121,11 +121,11 @@ cb_print_draw_page(GtkPrintOperation* UNUSED(print_operation), GtkPrintContext* } /* white background */ - cairo_save(cairo); - cairo_set_source_rgb(cairo, 1, 1, 1); - cairo_rectangle(cairo, 0, 0, width, height); - cairo_fill(cairo); - cairo_restore(cairo); + cairo_save(temp_cairo); + cairo_set_source_rgb(temp_cairo, 1, 1, 1); + cairo_rectangle(temp_cairo, 0, 0, width, height); + cairo_fill(temp_cairo); + cairo_restore(temp_cairo); /* render the page to the temporary surface */ girara_debug("printing page %d ...", page_number);