[evolution-patches] mail: footer printing



Attached patch fixes footer printing.

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.2721
diff -u -p -r1.2721 ChangeLog
--- ChangeLog	9 May 2003 17:11:08 -0000	1.2721
+++ ChangeLog	16 May 2003 13:33:08 -0000
@@ -1,3 +1,8 @@
+2003-05-16  Radek Doulik  <rodo ximian com>
+
+	* mail-callbacks.c (footer_info_new): gnome_font_get_descender
+	returns negative value
+
 2003-05-08  Ettore Perazzoli  <ettore ximian com>
 
 	* mail-session.c (mail_session_set_interactive): Set the
Index: mail-callbacks.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-callbacks.c,v
retrieving revision 1.440
diff -u -p -r1.440 mail-callbacks.c
--- mail-callbacks.c	2 May 2003 16:07:17 -0000	1.440
+++ mail-callbacks.c	16 May 2003 13:33:09 -0000
@@ -2863,7 +2863,7 @@ footer_info_new (GtkHTML *html, GnomePri
 	info->local_font = gnome_font_find_closest ("Helvetica", 10.0);
 	
 	if (info->local_font)
-		*line = gnome_font_get_ascender (info->local_font) + gnome_font_get_descender (info->local_font);
+		*line = gnome_font_get_ascender (info->local_font) - gnome_font_get_descender (info->local_font);
 	
 	info->page_num = 1;
 	info->pages = gtk_html_print_get_pages_num (html, pc, 0.0, *line);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]