Bug 140686 - Header on first page is wrong when same page style is used more than once
Summary: Header on first page is wrong when same page style is used more than once
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Header-Footer
  Show dependency treegraph
 
Reported: 2021-02-26 18:15 UTC by R. Green
Modified: 2021-03-13 10:04 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Writer file showing page header issue (22.77 KB, application/vnd.oasis.opendocument.text)
2021-02-26 18:15 UTC, R. Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. Green 2021-02-26 18:15:53 UTC
Created attachment 170089 [details]
Writer file showing page header issue

Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded

See the attached file. The "Default Page Style" is used throughout and has been set to allow the first, left and right pages to be different from each other. There are hard page breaks (dotted lines) between each book chapter.

EXPECTED RESULT: After each hard page break the "First page" content and style should reapply. (In this case, the header should be blank.)

ACTUAL RESULT: The first page is only set correctly at the first occurence of the "Default Page Style". On subsequent occurences (after each hard page break), the first page is displayed like a left or right page applies.

May affect footers as well.
Comment 1 R. Green 2021-02-26 18:22:13 UTC
P.S That last "applies" is a typo. Ignore it.
Comment 2 Dieter 2021-03-13 10:04:25 UTC
The current result is the expected result. First page is first page of a document and not first page of chapter (see Writer Guide for LO 6.4, page 117). If you want a different header at the first page of each chapter you have to create a page style like "Chapter beginning" or something else.
=> NOTABUG