From fd7fb24adbb4beb776eaded35e576eb2d8be39e3 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Thu, 16 Nov 2006 04:24:55 -0600 Subject: [PATCH] Little fixes --- moo/mooedit/mootextprint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/moo/mooedit/mootextprint.c b/moo/mooedit/mootextprint.c index da80acd2..5823316c 100644 --- a/moo/mooedit/mootextprint.c +++ b/moo/mooedit/mootextprint.c @@ -193,7 +193,7 @@ moo_print_header_footer_copy (MooPrintHeaderFooter *hf) int i; MooPrintHeaderFooter *copy; - g_return_val_if_fail (copy != NULL, NULL); + g_return_val_if_fail (hf != NULL, NULL); copy = moo_print_header_footer_new (); copy->separator = hf->separator; @@ -1209,6 +1209,7 @@ moo_print_operation_draw_page (GtkPrintOperation *operation, op->priv->page.y, op->priv->page.width, op->priv->page.height); + cairo_stroke (cr); cairo_set_source_rgb (cr, 0., 1., 0.); cairo_rectangle (cr, 0, 0, gtk_print_context_get_width (context), @@ -1270,7 +1271,7 @@ update_progress (GtkPrintOperation *operation, { int n_pages; g_object_get (op, "n-pages", &n_pages, NULL); - text = g_strdup_printf ("Printing page %d of %d", page, n_pages); + text = g_strdup_printf ("Printing page %d of %d", page + 1, n_pages); } else {