1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-ad,v 1.3 2000/10/15 17:38:56 rh Exp $
--- src/print.c.orig Thu Jan 2 04:24:05 1997
+++ src/print.c
@@ -258,12 +258,14 @@
print_headers (PrintJobInfo *pj)
{
PrintMargins *pm = &pj->pi->margins;
- double y;
+ double y = pj->height - pm->header.points -
+ gnome_font_get_size(pj->decoration_font);
gnome_print_setfont (pj->print_context, pj->decoration_font);
gnome_print_setrgbcolor (pj->print_context, 0, 0, 0);
- y = pj->height - pm->header.points - pj->decoration_font->size;
+ y = pj->height - pm->header.points -
+ gnome_font_get_size(pj->decoration_font);
print_hf (pj, pj->pi->header->left_format, LEFT_HEADER, y);
print_hf (pj, pj->pi->header->middle_format, MIDDLE_HEADER, y);
print_hf (pj, pj->pi->header->right_format, RIGHT_HEADER, y);
|