Bug 137533 - 2nd page header not imported from DOCX
Summary: 2nd page header not imported from DOCX
Status: RESOLVED DUPLICATE of bug 135217
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:docx, regression
Depends on:
Blocks: DOCX-Header-Footer
  Show dependency treegraph
 
Reported: 2020-10-16 13:42 UTC by Marco Zanon
Modified: 2021-01-26 15:52 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX test file (19.26 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-10-16 13:43 UTC, Marco Zanon
Details
What I get on Word at page 2 (35.82 KB, image/jpeg)
2020-10-16 13:44 UTC, Marco Zanon
Details
What I get on LibreOffice 7 at page 2 (52.55 KB, image/jpeg)
2020-10-16 13:44 UTC, Marco Zanon
Details
What I get on LibreOffice 6 at page 2 (49.92 KB, image/jpeg)
2020-10-16 13:48 UTC, Marco Zanon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Zanon 2020-10-16 13:42:24 UTC
The attached MsWord DOCX file has different headers for 1st page and 2nd+ pages.
However, in every page the content should be positioned at 4cm from top.

This is not imported properly in LibreOffice 7.0.1.2:
* on page 1: 1,50cm page top margin + 2,40cm header spacing + 0,10cm header margin = 4cm (ok);
* on page 2+: header is disabled, so I only have 1,50cm page top margin (wrong).

The word-p2.jpg picture shows what I get on Microsoft Word on page 2 (4cm).

The libreoffice-p2.jpg shows what I get on LibreOffice 7 instead (1,5cm).

The bug does not occur on LibreOffice 6.0.7.3, where I get:
* on page 1: 1,50cm page top margin + 2,40cm header spacing + 0,10cm header margin = 4cm (ok);
* on page 2+: 4,00cm page top margin = 4cm (ok).

Thanks,
MZ
Comment 1 Marco Zanon 2020-10-16 13:43:17 UTC
Created attachment 166428 [details]
DOCX test file
Comment 2 Marco Zanon 2020-10-16 13:44:12 UTC
Created attachment 166429 [details]
What I get on Word at page 2
Comment 3 Marco Zanon 2020-10-16 13:44:34 UTC
Created attachment 166430 [details]
What I get on LibreOffice 7 at page 2
Comment 4 Marco Zanon 2020-10-16 13:48:01 UTC
Created attachment 166431 [details]
What I get on LibreOffice 6 at page 2
Comment 5 NISZ LibreOffice Team 2020-10-19 12:39:32 UTC
Confirming with:

Version: 7.1.0.0.alpha0+ (x64)
Build ID: c064766901722082df0d759c95434c1460fcdba5
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Second page header is turned off.

This was still good in:
Verzió: 6.4.0.3 (x86)
Build az.: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: alapértelmezett; VCL: win; 
Területi beállítások: en-US (hu_HU); Felület nyelve: hu-HU
Calc: CL
Comment 6 NISZ LibreOffice Team 2020-10-19 13:09:18 UTC
Bibisected with bibisect-win64-7.0 to:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=51534ac2b9747975945acb6a1e1ba5cc6d73f5c2

author	Miklos Vajna <vmiklos@collabora.com>	2020-05-11 21:08:35 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	2020-05-12 09:02:43 +0200

tdf#127778 DOCX import: fix unexpected heading on non-first page ...

Adding CC to: Miklós Vajna
Comment 7 Justin L 2021-01-26 15:52:23 UTC
Fixed in LO 7.0.5 by author Miklos Vajna on 2020-12-08 08:45:54 with
commit 29993781ac991e85bfbd61f9e076c9d8088cd3ab
    tdf#135217 DOCX import: remove no longer needed top/bottom margin sync

*** This bug has been marked as a duplicate of bug 135217 ***