Skip to content

Commit b242f00

Browse files
committed
Fix HEADER1 on first page (Issue #544)
1 parent 97f83cf commit b242f00

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ v1.9.21 (YYYY-MM-DD)
1010
- Fixed a bug in the number-up code (Issue #539)
1111
- Fixed a regression in leading whitespace handling (Issue #540)
1212
- Fixed a bug in numbered heading support (Issue #543)
13+
- Fixed a bug with setting the header on the first page (Issue #544)
1314

1415

1516
v1.9.20 (2024-12-09)

htmldoc/ps-pdf.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8489,6 +8489,9 @@ parse_comment(tree_t *t, /* I - Tree to parse */
84898489
else
84908490
Header1[pos] = NULL;
84918491

8492+
check_pages(*page);
8493+
pages[*page].header1[pos] = (uchar *)Header1[pos];
8494+
84928495
// Adjust top margin as needed...
84938496
float adjust, image_adjust, temp_adjust;
84948497

0 commit comments

Comments
 (0)