Bug 155135 - Issue in section ending with Table as last element
Summary: Issue in section ending with Table as last element
Status: RESOLVED DUPLICATE of bug 158855
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Section
  Show dependency treegraph
 
Reported: 2023-05-03 12:11 UTC by pulapakiran
Modified: 2024-10-01 19:13 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file where the bug is seen (139.34 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-05-03 12:13 UTC, pulapakiran
Details
Test file2 where the issue is not seen i.e., when an empty para is added after the table and before the section (138.20 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-05-03 12:14 UTC, pulapakiran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pulapakiran 2023-05-03 12:11:44 UTC
Description:
When the table is the last element of continuous section, it is flowing out of the section it needs to be when I open in the writer.

Steps to Reproduce:
1.Open the file in writer
2.The table having two cells with image in one cell and text in other cell is shifting to next page whereas when you open in MS Word.. it is fine

Actual Results:
The table is not in the section and flowing to next page even when there is space.

Expected Results:
The table should be in the same continuous section and on the first page


Reproducible: Always


User Profile Reset: No

Additional Info:
1. I have tried to debug a bit.. and have seen the table node is not falling in between the section start and end nodes in Nodes list layouting..The table Node starts after the section end Node.

2. The issue is not reproducible if you add even an empty para after the table adn before the section end...only when the section ends exactly with a table .. this behaviour is seen.
Comment 1 pulapakiran 2023-05-03 12:13:08 UTC
Created attachment 187069 [details]
Test file where the bug is seen
Comment 2 pulapakiran 2023-05-03 12:14:26 UTC
Created attachment 187070 [details]
Test file2 where the issue is not seen i.e., when an empty para is added after the table and before the section
Comment 3 Buovjaga 2024-10-01 17:44:46 UTC
Repro with 7.6, not with master.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 298c2d5c8a6791aa6e5846b698d521079aaa445d
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 1 October 2024
Comment 4 Justin L 2024-10-01 19:13:46 UTC
fixed in 24.2.0.2 from master commit f09420fa189be5165b0311083ba127073500a121
Author: Mike Kaganski on Mon Dec 25 15:32:41 2023 +0600
    tdf#158855: Make sure to not add extra paragraph after a table in a section

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