Bug 133445 - FILEOPEN: Incorrect header/footer when first page is Even page
Summary: FILEOPEN: Incorrect header/footer when first page is Even page
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: bibisected, bisected, filter:doc
Depends on: Writer-Styles-Page-Odd-Even
Blocks: DOC-Header-Footer
  Show dependency treegraph
Reported: 2020-05-27 15:19 UTC by Xisco Faulí
Modified: 2022-09-05 12:22 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:

Comparison MSO 2010 and LibreOffice 7.0 master (484.67 KB, image/png)
2020-05-27 15:19 UTC, Xisco Faulí

Note You need to log in before you can comment on or make changes to this bug.
Description Xisco Faulí 2020-05-27 15:19:38 UTC
Created attachment 161339 [details]
Comparison MSO 2010 and LibreOffice 7.0 master

Steps to reproduce:
1. Open attachment 70890 [details] from bug 57780

-> first page's header/footer are on page 2. See comparison image

Reproduced in

Build ID: 82894d85147840f1f587e9530b12f0058f2ef2c3
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

[Bug found by office-interoperability-tools]
Comment 1 Xisco Faulí 2020-05-27 15:20:54 UTC
Regression introduced by:


author	Michael Stahl <Michael.Stahl@cib.de>	2020-02-18 19:18:47 +0100
committer	Michael Stahl <michael.stahl@cib.de>	2020-02-19 16:48:28 +0100
commit 509a02aa96f6d7620cb0bf06c20b3bfa0641be92 (patch)
tree facaac50f8f787613756e1339501a421f98e6700
parent 4d5c0eaf3e0d3d3bcd9e691fffee19b75f3d6631 (diff)
tdf#125682 sw: don't insert empty page before first page with even number

Bisected with: bibisect-linux64-6.5

Adding Cc: to Michael Stahl
Comment 2 Michael Stahl (allotropia) 2020-05-27 15:46:51 UTC
AFAIK even-first Word documents never worked properly so i'm not sure this can be called a regression.

as the commit message says:

  A useful improvement would be to detect in Word import filters that the
  first page is even numbered and then invert the mapping of all of the
  page styles, i.e. odd header/footer->left instead of right, and if
  mirrorMargins, pgMar left -> inner instead of outer.
Comment 3 Michael Stahl (allotropia) 2020-05-27 15:55:10 UTC
ah right, if i revert the commit, i get a blank page inserted before the first one, so it was broken before anyway => removing regression