Bug 160958 - Hiding section covering at least two pages doesn't work properly
Summary: Hiding section covering at least two pages doesn't work properly
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.2.2 release
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:24.8.0 target:24.2.5
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Section DOCX-Floatingtable
  Show dependency treegraph
 
Reported: 2024-05-06 11:48 UTC by Patrick Charlot
Modified: 2024-06-04 09:32 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Doc reprocing the bug (12.44 KB, application/vnd.oasis.opendocument.text)
2024-05-06 11:51 UTC, Patrick Charlot
Details
Other doc reproducing the bug (12.79 KB, application/vnd.oasis.opendocument.text)
2024-05-06 11:51 UTC, Patrick Charlot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Charlot 2024-05-06 11:48:58 UTC
Description:
When a section spanning two (or more) pages is hidden, rendering inserts a sort of page break. The paragraph following the hidden section is rendered on the next page when it should have been on the same page as the one before the section.
This occurs in LO 24.2.2 and 24.2.3, but not in 24.2.1.

Steps to Reproduce:
1.Open a new doc and enter two or more paragraphs
2.create a section and enter paragraphs that make a page break
3.enter other paragraphs after the section
4.then hide the section

Actual Results:
Paragraphs which are after the section are set on the second page instead of the first one.

Expected Results:
Paragraphs which are after the hidden section should be in the first page, just after the paragraphs which are before the section.


Reproducible: Always


User Profile Reset: No

Additional Info:
You can have a look at the doc reproducing the problem here :
https://www.cjoint.com/c/NEgiLskSERO <https://www.cjoint.com/c/NEgiLskSERO>
Comment 1 Patrick Charlot 2024-05-06 11:51:12 UTC
Created attachment 193992 [details]
Doc reprocing the bug
Comment 2 Patrick Charlot 2024-05-06 11:51:47 UTC
Created attachment 193993 [details]
Other doc reproducing the bug
Comment 3 m_a_riosv 2024-05-06 12:20:55 UTC
Reproducible
Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 4 m_a_riosv 2024-05-06 23:01:12 UTC
Last working for me
Version: 24.2.0.0.alpha1 (X86_64) / LibreOffice Community
Build ID: 06946980c858649160c634007e5fac9a5aa81f38
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 5 gladys 2024-05-09 17:10:52 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2024-05-10 05:42:00 UTC Comment hidden (obsolete)
Comment 7 gladys 2024-05-10 16:16:08 UTC
bibisect windows10, version 24.8 to 0c96119895b347f8eb5bb89f393351bd3c02b9f1
tdf#159565 prerequisite: make hidden sections have zero-height frames 
Date: Fri Feb 09 11:56:19 2024 +0600
Comment 8 Justin L 2024-05-27 17:01:33 UTC
sw/qa/extras/ooxmlexport/data/ooo96040-2.odt is another example.
Comment 9 Mike Kaganski 2024-05-30 06:53:27 UTC
https://gerrit.libreoffice.org/c/core/+/168235
Comment 10 Commit Notification 2024-05-31 07:26:21 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c60ad7e0fbf3cc86af167f5e98b38c25620ada7e

tdf#160958: merge hidden section's follows; move first-on-page section back

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Commit Notification 2024-06-04 09:32:15 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/f660e0de223741f57d01c30fc7f8ce1bdad0b6e0

tdf#160958: merge hidden section's follows; move first-on-page section back

It will be available in 24.2.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.