From 9b7fa7a90482581bc8cba2eb975c8251b6acadff Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 17 May 2009 18:11:46 +0200 Subject: Use nr_of_pages_to_print instead of nr_of_pages when updating printing progress Fixes bgo#582950. --- gtk/gtkprintoperation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkprintoperation.c') diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c index bc0a5e519d..4c9b9be20e 100644 --- a/gtk/gtkprintoperation.c +++ b/gtk/gtkprintoperation.c @@ -2115,8 +2115,8 @@ update_progress (PrintPagesData *data) { if (priv->status == GTK_PRINT_STATUS_PREPARING) { - if (priv->nr_of_pages > 0) - text = g_strdup_printf (_("Preparing %d"), priv->nr_of_pages); + if (priv->nr_of_pages_to_print > 0) + text = g_strdup_printf (_("Preparing %d"), priv->nr_of_pages_to_print); else text = g_strdup (_("Preparing")); } -- cgit v1.2.1