Issue 126833 - Nested tables - problem with large inner table
Summary: Nested tables - problem with large inner table
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 4.1.2
Hardware: All All
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-09 10:41 UTC by Christoph Epple
Modified: 2016-04-10 16:02 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Broken nested tables (9.45 KB, application/vnd.oasis.opendocument.text)
2016-02-09 10:41 UTC, Christoph Epple
no flags Details
Snagits of test results (9.88 KB, application/vnd.oasis.opendocument.text)
2016-04-09 22:49 UTC, katherine_arnold
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Christoph Epple 2016-02-09 10:41:03 UTC
Created attachment 85278 [details]
Broken nested tables

We have a document with two nested tables. The inner table is very large, over several pages. At a cetain point both tables will be cut off on the first page.

I attached the document with the broken tables.

By deleting one row in the inner table, the tables will reappear on the other pages.

Add one row -> save -> reopen -> tables are broken again.

Sometimes OpenOffice crashes, if you add some rows in the inner table at this point and then use the undo command.
Comment 1 Mikhail 2016-02-17 04:34:19 UTC
CONFIGURATION: Windows 10 (64-bit), 8GB RAM
Version: Apache Open Office 4.1.2

I was able to reproduce this bug by doing the following steps:

1. Open OO Writer & create a new document
2. Select Insert from the menu options and click on table.
3. In the insert table dialog box set Rows to 1 and columns to 2, press ok.
4. Make sure the cursor is within the table then use Ctrl + A to select the whole table       then set the border style to 2pt      
5. Adjust the row to fill the page. Right click an empty space within the column > select Row >Height (set Row height to 9.19” and make sure the fit to size box is checked) press ok.
6. In the left column using the arrow on the right of the table icon create a 2 by 30 table.
7. With the cursor within the 2 by 30 table field use Ctrl + A to select the table.
8. Set the line style to 2pt and the line color to red (Located on the table menu bar) and input the text Head A and Head B into the First 2 columns respectively.
9. Repeat steps 6 through 7 for two more pages(on the third page the number of rows need not be 30).
10. Save the file and reopen.
11. After you reopen the file you should observe that the content on the 2nd and 3rd pages have disappeared.
Comment 2 stev3.layman 2016-04-09 17:35:27 UTC
I was able to duplicate in the following environments using the steps provided by Mikhail:

Windows 10 Pro (64-bit)
16GB RAM
Apache Open Office 4.2.0 (build 9800)

Linux Mint 17.2 Cinnamon 64-bit
4GB RAM
Apache Open Office 4.2.0 (build 9800)

Test 1:
1. Create a new Write document
2. Create a new table (2x2)
3. Set the row height of the table to 9.19"
4. Select the entire table (CTRL+A)
5. Set the border width to 2px
6. While inside the first cell, create a new table (2x30)
7. Select all of the inner table (CTRL+A while the cursor is in the inner table)
8. Set the border width to 2px
9. Repeat steps 6-8 to create additional tables on pages 2 and 3 inside the original table
10. Save the docuemnt
11. Close the document
12. Open the saved document
Result: Pages 2 and 3 appear to be gone. The table on the first page has some extra border on the bottom most row. Deleting rows does not restore the page, but does make cells which should have been on the second and third pages appear on the first page.

Test 2:
1. Create a new Write document
2. Create a new table (2x2)
3. Select the entire table (CTRL+A)
5. Set the border width to 2px
6. While inside the first cell, create a new table (2x30)
7. Select all of the inner table (CTRL+A while the cursor is in the inner table)
8. Set the border width to 2px
9. Repeat steps 6-8 to create additional tables on pages 2 and 3 inside the original table
10. Save the docuemnt
11. Close the document
12. Open the saved document
Result: Same as above

Test 3:
1. Create a new Write document
2. Create a new table (2x2)
3. Select the entire table (CTRL+A)
5. Set the border width to 4px
6. While inside the first cell, create a new table (2x28)
7. Select all of the inner table (CTRL+A while the cursor is in the inner table)
8. Set the border width to 4px
9. Repeat steps 6-8 to create additional tables on pages 2 and 3 inside the original table
10. Save the docuemnt
11. Close the document
12. Open the saved document
Result: Same as above

Test 4:
1. Create a new Write document
2. Create a new table (2x2)
3. Select the entire table (CTRL+A)
5. Set the border width to 2px
6. While inside the first cell, create a new table (2x31)
7. Select all of the inner table (CTRL+A while the cursor is in the inner table)
8. Set the border width to 2px
9. Delete a row
10. Repeat steps 6-8 making tables with 30 rows instead of 31 to create additional tables on pages 2 and 3 inside the original table
11. Save the docuemnt
12. Close the document
13. Open the saved document
Result: Same as above

Test 5:
1. Create a new Write document
2. Create a new table (2x2)
3. Select the entire table (CTRL+A)
5. Set the border width to 2px
6. While inside the first cell, create a new table (2x29)
7. Select all of the inner table (CTRL+A while the cursor is in the inner table)
8. Set the border width to 2px
9. Add an additional row to the inner table (this should force the outer table onto an additional page
10. Repeat steps 6-9 to create additional tables on pages 2 and 3 inside the original table
11. Save the docuemnt
12. Close the document
13. Open the saved document
Result: The page displays as expected. All three pages show their tables and all content.

Test 6:
1. Create a new Write document
2. Create a new table (2x2)
3. Select the entire table (CTRL+A)
6. While inside the first cell, create a new table (2x35) (this should fill the first page with the final row of the inner table showing up on a new page)
7. Repeat step 6to create additional tables on pages 2 and 3 inside the original table
11. Save the docuemnt
12. Close the document
13. Open the saved document
Result: The page displays as expected. All three pages show their tables and all content.

Observations:
It appears that creating an inner table with exactly enough rows to completely fill a page is the issue here. The key points are:

1. The inner form has to completely fill the page ON CREATION. Adding or deleting rows to fulfill that condition doesn't cause an issue.

2. Upon opening the saved table, visual queues on the first page (the double border) indicate that there's a display issue at play here and not that the data has actually been lost. This is confirmed when you delete a row on the first inner table and can start to see the data from the second inner table showing up
Comment 3 katherine_arnold 2016-04-09 22:49:35 UTC
Created attachment 85399 [details]
Snagits of test results
Comment 4 katherine_arnold 2016-04-09 22:51:53 UTC
Using HP Elitebook 840 with Windows 7 and Open Office 4.1.2 I was able to reproduce this bug. For the first test I followed Mikhail's instructions . I attached a file with snagits of the test results 
Test 1
1. Opened Open Office Writer & created a new document
2. Selected Insert from the menu options and clicked on table.
3. Inserted a table using the table dialog box setting the rows to 1 and columns to 2, and pressed ok.
4. Place the cursor within the row of the table then use Ctrl + A to select the whole table. Highlight the table and set the border line style to 2pt. 
5. I adjusted the row to fill the page. I right clicked on an empty space within the column then Table from the top tool bar and auto fit from the drop down. I selected  Row >Height from the drop down and set the Row height to 9.19” making sure the fit to size box was checked and clicked ok.
6. Placing the cursor in the left column click the arrow on the right of the table icon. Select table and create a 2 by 30 table and click ok.
7. With the cursor within the 2 by 30 table I used Ctrl + A to select the table.
8. Using the table menu bar I set the line style to 2pt and the line color to red. I then input the text Head A and Head B into the First 2 columns respectively.
9. I repeat steps 6 through 7 for two more pages
10. The result is three pages with a table nested into the left hand column. There is also a 4th page with a table with one row and two columns.
11. I saved the file and reopened.
12. After I reopen the file I observe that the content on page one now displayed a heavier bold line in the bottom of the second to last row, the bottom of the last row is missing (see attachment for snagit results of tests) and the 2nd and 3rd pages have disappeared. Also it appears the text inserted in first row of the nested table on the first page has disappeared.
Test 2
While file is reopened I deleted one row from the table on the first page. The thick border moved to the top of the second to last row. The bottom border is still missing from the bottom of the last row.
Test 3
1. While file is reopened I deleted four rows from the table on the first page. The thick border moved to the top of the fourth row from the bottom of the page. The bottom border is still missing from the bottom of the last row. Test is still missing.
2. I saved and closed the file. Reopened the file and the table on page one displayed as it had in when I saved and close it 
Test 4 
1.While file was open moved to page two and repeated steps 1 thru 9 expect for step 9 created one more page rather than two. I also inserted Head A and Head B in the first row of the first page. Saved and closed the document.
2. The result. Page one was complete as entered including the text. Page two was complete with the nested table. Page three has the 1x2 table but the nested table is missing. Saved and closed the file
 
Test 5 
 Reopened the file. Text is missing from the first row of page one but displaying in the table of page two. Page three is displaying the nested table and now page four displays with the 1x2 table.
Comment 5 katherine_arnold 2016-04-10 16:01:33 UTC
katherine_arnold@progressive.com 2016-04-09 22:51:53 UTC 
Using HP Elitebook 840 with Windows 7 and Open Office 4.1.2 I was able to reproduce this bug. For the first test I followed Mikhail's instructions . I attached a file with snagits of the test results 
Test 1
1. Opened Open Office Writer & created a new document
2. Selected Insert from the menu options and clicked on table.
3. Inserted a table using the table dialog box setting the rows to 1 and columns to 2, and pressed ok.
4. Place the cursor within the row of the table then use Ctrl + A to select the whole table. Highlight the table and set the border line style to 2pt. 
5. I adjusted the row to fill the page. I right clicked on an empty space within the column then Table from the top tool bar and auto fit from the drop down. I selected  Row >Height from the drop down and set the Row height to 9.19” making sure the fit to size box was checked and clicked ok.
6. Placing the cursor in the left column click the arrow on the right of the table icon. Select table and create a 2 by 30 table and click ok.
7. With the cursor within the 2 by 30 table I used Ctrl + A to select the table.
8. Using the table menu bar I set the line style to 2pt and the line color to red. I then input the text Head A and Head B into the First 2 columns respectively.
9. I repeat steps 6 through 7 for two more pages
10. The result is three pages with a table nested into the left hand column. There is also a 4th page with a table with one row and two columns.
11. I saved the file and reopened.
12. After I reopen the file I observe that the content on page one now displayed a heavier bold line in the bottom of the second to last row, the bottom of the last row is missing (see attachment for snagit results of tests) and the 2nd and 3rd pages have disappeared. Also it appears the text inserted in first row of the nested table on the first page has disappeared.
Test 2
While file is reopened I deleted one row from the table on the first page. The thick border moved to the top of the second to last row. The bottom border is still missing from the bottom of the last row.
Test 3
1. While file is reopened I deleted four rows from the table on the first page. The thick border moved to the top of the fourth row from the bottom of the page. The bottom border is still missing from the bottom of the last row. Test is still missing.
2. I saved and closed the file. Reopened the file and the table on page one displayed as it had in when I saved and close it 
Test 4 
1.While file was open moved to page two and repeated steps 1 thru 9 expect for step 9 created one more page rather than two. I also inserted Head A and Head B in the first row of the second page. Saved and closed the document.
2. The result. Page one was complete as entered. Page two was complete with the nested table. Page three has the 1x2 table but the nested table is missing. Saved and closed the file
 
Test 5 
 Reopened the file. Text is missing from the first row of page one but displaying in the table of page two. Page three is displaying the nested table and now page four displays with the 1x2 table.
Comment 6 katherine_arnold 2016-04-10 16:02:46 UTC
Added updated test results due to copy paste error in step 4 and 5