Commit 13128254 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Draw white background on correct cairo instance

parent 895a0dfb
...@@ -121,11 +121,11 @@ cb_print_draw_page(GtkPrintOperation* UNUSED(print_operation), GtkPrintContext* ...@@ -121,11 +121,11 @@ cb_print_draw_page(GtkPrintOperation* UNUSED(print_operation), GtkPrintContext*
} }
/* white background */ /* white background */
cairo_save(cairo); cairo_save(temp_cairo);
cairo_set_source_rgb(cairo, 1, 1, 1); cairo_set_source_rgb(temp_cairo, 1, 1, 1);
cairo_rectangle(cairo, 0, 0, width, height); cairo_rectangle(temp_cairo, 0, 0, width, height);
cairo_fill(cairo); cairo_fill(temp_cairo);
cairo_restore(cairo); cairo_restore(temp_cairo);
/* render the page to the temporary surface */ /* render the page to the temporary surface */
girara_debug("printing page %d ...", page_number); girara_debug("printing page %d ...", page_number);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment