From c06b439cb2ff052c4479bf7de3bc3a7b8a4e3a0c Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sun, 27 Jun 2010 10:33:35 +0200 Subject: [PATCH] [demo] Backup/restore global map while printing To emit the drawing for previewing and printing purpose, the global map of the canvas must be set to the identity matrix. The old map is stored and restored as soon as the drawing has been generated, so the artifacts rendered on the screen due to wrong global map (highlighted in the previous commit) are now vanished. Closes issue #44: http://dev.entidi.com/p/adg/issues/44/ --- demo/adg-demo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/demo/adg-demo.c b/demo/adg-demo.c index 89edd1a1..900959ff 100644 --- a/demo/adg-demo.c +++ b/demo/adg-demo.c @@ -634,7 +634,6 @@ _adg_print_page(GtkPrintOperation *operation, GtkPrintContext *context, adg_matrix_copy(&old_map, adg_entity_get_global_map(canvas));; - cairo_matrix_init_identity(&old_map); adg_entity_set_global_map(canvas, adg_matrix_identity()); adg_entity_render(canvas, cr); -- 2.11.4.GIT