Bug Hunting Session
Bug 121407 - nested table layout error
Summary: nested table layout error
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables-Nested
  Show dependency treegraph
 
Reported: 2018-11-14 07:12 UTC by 564398053
Modified: 2019-03-15 05:19 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
the odt to reproduce the bug (12.09 KB, application/vnd.oasis.opendocument.text)
2018-11-14 07:16 UTC, 564398053
Details
the normal layout (3.77 KB, image/png)
2018-11-14 07:22 UTC, 564398053
Details
the layout with error (8.13 KB, image/png)
2018-11-14 07:22 UTC, 564398053
Details
the expected result (9.31 KB, image/png)
2018-11-14 07:23 UTC, 564398053
Details
Open this file, and press enter as what attachment's images do (9.87 KB, application/vnd.oasis.opendocument.text)
2018-11-15 02:09 UTC, 564398053
Details
step 0, open the attachment odt (85.98 KB, image/png)
2018-11-15 02:10 UTC, 564398053
Details
step 1, press enter at this position (98.18 KB, image/png)
2018-11-15 02:11 UTC, 564398053
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 564398053 2018-11-14 07:12:36 UTC
Description:
Hi, I found that there is an error when table is nested.
You could easily see the bug in attachment.
I debug the code, and I know there is bug with SwTabFrame::MakeAll(), but the layout algorithm is too complex for me to fix it.
Is there any one could help fix this. Thanks.
:D

Steps to Reproduce:
1.set page width to 8 cm and page height to 6 cm
2.insert a table with 2 rows and 1 column.
3.insert a inner table with just one cell into first table's bottom cell.
4.set the inner table border color to cyan to more easily see the layout bug.
5.enter 7 empty lines in to inner table.
6.enter empty lines into outer table to make the upper cell's bottom line strictly close to the page bottom.
sadly, the whole inner table which should at second page goes totally into first page. 

        

Actual Results:
Looks like following

 first page
-------------------------------------------------------------------
|                                                                 |
|                                                                 |
|                                                                 |
|                                                                 |   
|-----------------------------------------------------------------|
| all inner table content goes here with less than 0.2 cm height  |
|-----------------------------------------------------------------|
      second page

Expected Results:
 first page
-------------------------------------------------------------------
|                                                                 |
|                                                                 |
|                                                                 |
|                                                                 |   
|-----------------------------------------------------------------|
| inner table at second page                                      |     
|                                                                 |
|                                                                 |
|                                                                 |
|                                                                 |
|-----------------------------------------------------------------|


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 4.3.3.2
Build ID: ab5787d23cc2fddf057ced56647ef9f5e6ebefdd
Comment 1 564398053 2018-11-14 07:16:34 UTC Comment hidden (obsolete)
Comment 2 564398053 2018-11-14 07:22:27 UTC Comment hidden (obsolete)
Comment 3 564398053 2018-11-14 07:22:55 UTC Comment hidden (obsolete)
Comment 4 564398053 2018-11-14 07:23:27 UTC Comment hidden (obsolete)
Comment 5 Dieter Praas 2018-11-14 21:03:30 UTC
I can't confirm this with

Version: 6.2.0.0.alpha1+ (x64)
Build ID: 8274c4c62df5b937b3f0bec9e1eeca85f3b219d4
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-22_01:47:50
Locale: en-US (de_DE); Calc: CL
Comment 6 564398053 2018-11-15 01:06:41 UTC Comment hidden (obsolete)
Comment 7 564398053 2018-11-15 01:08:07 UTC Comment hidden (obsolete)
Comment 8 564398053 2018-11-15 02:07:28 UTC Comment hidden (obsolete)
Comment 9 564398053 2018-11-15 02:09:40 UTC
Created attachment 146639 [details]
Open this file, and press enter as what attachment's images do
Comment 10 564398053 2018-11-15 02:10:20 UTC
Created attachment 146640 [details]
step 0, open the attachment odt
Comment 11 564398053 2018-11-15 02:11:17 UTC
Created attachment 146641 [details]
step 1, press enter at this position
Comment 12 564398053 2018-11-15 02:13:32 UTC Comment hidden (obsolete)
Comment 13 564398053 2018-11-15 02:14:15 UTC Comment hidden (obsolete)
Comment 14 564398053 2018-11-15 07:39:46 UTC
(In reply to Dieter Praas from comment #5)
> I can't confirm this with
> 
> Version: 6.2.0.0.alpha1+ (x64)
> Build ID: 8274c4c62df5b937b3f0bec9e1eeca85f3b219d4
> CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
> TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-22_01:47:50
> Locale: en-US (de_DE); Calc: CL

Sorry for making the comments so dirty.
Please Check attachments again. I upload a new one, the old is obsolete.
As described in attachment's images you could soon reproduce the bug.

Thanks.
Comment 15 Telesto 2018-11-15 08:15:09 UTC
Repro
Version: 6.2.0.0.alpha0+
Build ID: 76bf3939b0583212a56c317c85aea110f8ac6fee
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-07-27_06:01:47
Locale: nl-NL (nl_NL.UTF-8); Calc: group threaded
Comment 16 Xisco Faulí 2018-11-16 11:09:24 UTC
Also reproduced in

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.10; Render: default; 

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 17 Xisco Faulí 2018-11-16 11:09:57 UTC
@Mike Kaganski, I thought you could be interested in this issue...
Comment 18 RickyTzou 2018-11-29 08:24:44 UTC
Still exists in version

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 0f25a3c36f27fd51453b9a9115f236b83c143684
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-27_20:06:55
Locale: zh-TW (zh_TW); UI-Language: en-US
Calc: threaded
Thank you!