Bug 142319 - FILEOPEN DOCX: Too large spacing between image and paragraph with intersecting spacings
Summary: FILEOPEN DOCX: Too large spacing between image and paragraph with intersectin...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Paragraph
  Show dependency treegraph
 
Reported: 2021-05-16 17:29 UTC by Telesto
Modified: 2024-06-02 04:21 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (2.07 MB, application/vnd.oasis.opendocument.text)
2021-05-16 17:29 UTC, Telesto
Details
Example file trimmed down (153.25 KB, application/vnd.oasis.opendocument.text)
2021-05-16 17:39 UTC, Telesto
Details
The example file saved in current master (95.79 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-06-11 06:14 UTC, NISZ LibreOffice Team
Details
The docx version of the example file in 5.4 and 7.2 (278.04 KB, image/png)
2021-06-11 06:22 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-05-16 17:29:26 UTC
Description:
Header spacing from 0,50 to 0,80 cm on docx export causing different page split (additional pages)

Steps to Reproduce:
1. Open the attached file (go to page 43)
2. Save as DOCX
3. File reload (go to page 43)

Actual Results:
"entry Room Acoustic." on page 44 

Expected Results:
Should be on 43


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: d7f734db2c078ced3ce08ad58cd816a79abe3bcf
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2021-05-16 17:29:43 UTC
Created attachment 172063 [details]
Example file
Comment 2 Telesto 2021-05-16 17:30:03 UTC
Source document: https://bugs.documentfoundation.org/attachment.cgi?id=160498
Comment 3 Telesto 2021-05-16 17:39:59 UTC
Created attachment 172064 [details]
Example file trimmed down
Comment 4 Telesto 2021-05-16 17:42:53 UTC
Also in
6.4 

and in
Version: 6.1.0.0.beta2+
Build ID: 22c451df33b733440f24c1feb6380d31240d55e6
CPU threads: 4; OS: Windows 6.3; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL
Comment 5 Telesto 2021-05-16 17:48:32 UTC
Also with
Version: 6.0.6.0.0+
Build ID: c30963b8b4bbbe42a24b97aafa161eff9d7ccdd4
CPU threads: 4; OS: Windows 6.3; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL

not with
5.4
Comment 6 Dieter 2021-05-31 06:35:02 UTC
I confirm it with

Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 4a9eef7849a75ba91806886ea9c96d114c8d56f9
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Spacing in header changes from 0,5 cm to 0,89 cm and "use dynamic spacing" is enabled
Comment 7 NISZ LibreOffice Team 2021-06-11 06:14:10 UTC
Created attachment 172781 [details]
The example file saved in current master

This is a display problem really, 5.4 shows this file on 3 pages while 7.2 shows the 5.4-saved file on 4 pages as well.
Comment 8 NISZ LibreOffice Team 2021-06-11 06:16:36 UTC
Bibisected with win32-6.0 to:

https://git.libreoffice.org/core/+/ae910b993f69205866f94ac8928f13f57e94560b

author	Patrick Jaap <patrick.jaap@tu-dresden.de>	Tue Apr 10 13:24:04 2018 +0200
committer	Miklos Vajna <vmiklos@collabora.co.uk>	Tue Apr 17 09:07:13 2018 +0200

tdf#116486 Consider upper margin in paragraph positioning with flys

Since this one there is a slightly larger spacing between the bottom of the image on the second page and the paragraph below it. Enough to push the text to be one line longer.
Comment 9 NISZ LibreOffice Team 2021-06-11 06:22:34 UTC
Created attachment 172782 [details]
The docx version of the example file in 5.4 and 7.2
Comment 10 Justin L 2022-03-08 09:34:15 UTC
repro 7.4+
reducing importance since this is moving from ODT -> DOCX and is worried about pixel perfect sizing. (The document is formatted a bit strangely because it contains explicit page breaks and yet the content fills the entire page.)
Comment 11 QA Administrators 2024-03-08 03:15:17 UTC Comment hidden (obsolete)
Comment 12 Dieter 2024-05-12 14:06:26 UTC
Tested with

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

and attachment 172064 [details]

Actual result:
Header spacing changes from 0,5cm (in odt-file) to 0,8cm and "use dynamic spacing" enabled. But room Acustic is still on page 2. So I can't see change in layout

Expected result:
Perhaps acutal result?

What do you think, Telesto?

Additional information
Page stle changes from "First Page" to "Default Page" and from "Default Page" to "Converted 1"