Bug 149397 - FILEOPEN 78-pages .DOC opens with much more pages since Lo 5.3
Summary: FILEOPEN 78-pages .DOC opens with much more pages since Lo 5.3
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:doc
Depends on: 149147
Blocks: DOC
  Show dependency treegraph
 
Reported: 2022-05-31 10:04 UTC by Timur
Modified: 2023-06-25 10:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample DOCX created in MSO from DOC (161.47 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-06-01 12:12 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2022-05-31 10:04:59 UTC
Open DOC attachment 180178 [details] from bug 149147.
It should be 78 pages and it was until 5.3 when it went to 127 pages with:
 source 5d9d0f3c979732ade57b9c4c4960dd030ffdc9f9
 pre 2a818a0aafac218ca09bb079d7f2cf0879385e4a
 author	Justin Luth <justin_luth@sil.org>	2016-11-02
 there is a function for that: CalcLineSpace(xx, bEvenIfNoLine)

It's a known commit, but previously I was seeing it for ODT, not DOC fileopen. 
in 7.4+ I see 124 paqes with DOC and 90 pages with MSO created DOCX. 
CC Justin, please see.
Comment 1 Justin L 2022-06-01 10:05:27 UTC
(In reply to Timur from comment #0)
>  there is a function for that: CalcLineSpace(xx, bEvenIfNoLine)

This is just exposing some kind of layout bug. The commit is related to bug 41542 adding border spacing even when there is no actual border line. That will shift things around layout-wise compared to prior commits and thus trigger layout issues. So not a regression. (I couldn't even get the file to open on Linux.)
Comment 2 Timur 2022-06-01 12:12:48 UTC
Created attachment 180524 [details]
Sample DOCX created in MSO from DOC
Comment 3 Timur 2022-06-03 10:00:50 UTC
(In reply to Justin L from comment #1)
(I couldn't even get the file to open on Linux.)
Well, that's your regression in bug 149147 :)