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)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:doc
Depends on:
Blocks: DOC-Header-Footer Writer-Styles-Page-Odd-Even
  Show dependency treegraph
 
Reported: 2020-05-27 15:19 UTC by Xisco Faulí
Modified: 2023-12-09 09:21 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


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

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

Version: 7.0.0.0.alpha1+
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:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=509a02aa96f6d7620cb0bf06c20b3bfa0641be92

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