Bug 140408 - Images in table occasionally exceed table boundaries and cover the following text; this happens without user intervention
Summary: Images in table occasionally exceed table boundaries and cover the following ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables Writer-Images
  Show dependency treegraph
 
Reported: 2021-02-14 12:54 UTC by hgp
Modified: 2023-05-29 16:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
corrupted table with images (395.32 KB, image/png)
2021-02-14 13:06 UTC, hgp
Details
table after correction (click on boundary) (380.90 KB, image/png)
2021-02-14 13:14 UTC, hgp
Details
table after correction, save, exit and reopen (390.43 KB, image/png)
2021-02-14 13:20 UTC, hgp
Details
Comparison of earlier LO and current of images in a table (342.94 KB, application/pdf)
2021-08-11 19:11 UTC, Steve Edmonds
Details
70_00_version_info (206 bytes, text/plain)
2021-12-29 14:26 UTC, hgp
Details
70_01_file_opened (1.71 MB, image/png)
2021-12-29 14:27 UTC, hgp
Details
70_02_click_on_table_border (47.73 KB, image/png)
2021-12-29 14:28 UTC, hgp
Details
70_03_correct_display (1.75 MB, image/png)
2021-12-29 14:28 UTC, hgp
Details
72_00_version_info (224 bytes, text/plain)
2021-12-29 14:29 UTC, hgp
Details
72_01_file_opened (1.76 MB, image/png)
2021-12-29 14:29 UTC, hgp
Details
72_02_click_on_table_border (45.94 KB, image/png)
2021-12-29 14:30 UTC, hgp
Details
72_03_correct_display (1.80 MB, image/png)
2021-12-29 14:31 UTC, hgp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hgp 2021-02-14 12:54:50 UTC
Description:
I have images in tables in order to arrange them in arrays. After saving the document and reopening it, some of the images exceed the table boundaries (the table is smaller than before) and cover the text below the table. This happens to a few of the images in tables, not all of them. I cannot reproduce this behavior, this is frustrating.

I have corrected the tables in the whole document (by clicking on the table boundaries). This "puts the image back into the table". Even though the dispayed document changes on screen, the save button is still shown without a red dot (means nothing has changed, even though it HAS changed).

After saving the document, closing it (exit LibreOffice Writer) and opening it again, some of the images in tables are again misaligned.

Steps to Reproduce:
1. Open a document with images in tables
2. Correct the messed-up tables manually, tables are displayed correctly again
3. Save the document
4. Close LibreOffice Writer
5. Open the document
6. Some of the tables are messed-up again

Actual Results:
The document is changed unintentionally.
After manual fix, the error appears again and again.

Expected Results:
The document shouldn't be changed by saving and reopening it.


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_CH); UI: en-GB
Calc: threaded
Comment 1 hgp 2021-02-14 13:06:25 UTC
Created attachment 169729 [details]
corrupted table with images
Comment 2 hgp 2021-02-14 13:14:35 UTC
Created attachment 169730 [details]
table after correction (click on boundary)
Comment 3 hgp 2021-02-14 13:20:09 UTC
Created attachment 169731 [details]
table after correction, save, exit and reopen

the messed-up table is back
Comment 4 hgp 2021-02-16 18:30:23 UTC
This bug is also there in safe mode (no user profile).
Comment 5 hgp 2021-02-17 12:14:08 UTC
Downgrade to:

Version: 7.0.4.2 (x64)
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_CH); UI: en-US
Calc: threaded

"fixes" this bug.
Comment 6 Dieter 2021-03-04 08:15:51 UTC
Hgp, thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it)
Comment 7 hgp 2021-03-04 09:25:58 UTC
Trying to reproduce the error with a smaller example document...
Comment 8 QA Administrators 2021-03-05 04:19:35 UTC Comment hidden (obsolete)
Comment 9 Steve Edmonds 2021-08-01 20:16:03 UTC
I have this issue also.
I have many documents created over the last few years and regularly edited with tables containing hundreds of images, one per cell. The images were inserted into the tables by drag and drop and automatically anchored to paragraph and the table row expanded height to accommodate the image.

Now (at lease since LO 7.0) if I open these documents the table rows have shrunk behind the images and the images all overlap each other and rows below.
I resolve this by changing the image to anchor "as character" and the paragraph to "Centred" and the table row expands to appear as it did previously. 

I will look for a manual exhibiting this that is small enough to upload.
Comment 10 Steve Edmonds 2021-08-11 19:11:06 UTC
Created attachment 174212 [details]
Comparison of earlier LO and current of images in a table

The .odt is available if required, 22MB.
Comment 11 Dieter 2021-08-12 17:29:00 UTC
(In reply to Steve Edmonds from comment #9)
> I have this issue also.

=> Status NEW because of comment 9
Comment 12 Dieter 2021-11-23 07:50:40 UTC
Steve,since you've assigned the bug to yourself some month ago, I'd like to ask, if you are still working on it. If not please reset assignee to default, so someone else can try o fix it.
Comment 13 hgp 2021-12-29 14:23:39 UTC
I have been working with LibreOffice Writer 7.0.4.2 up to now because it didn't show the described bug. But a few days ago, the bug appeared also in Writer 7.0:

Steps and attachments for LO Writer 7.0.4.2:
0) Version info for Writer 7.0: 70_00_version_info.txt
1) Table shrunk and hidden by picture: 70_01_file_opened.png
2) Click on table border: 70_02_click_on_table_border.png
3) Table/picture appear correcly again: 70_03_correct_display.png

This change to the correct display is not recorded as a change in the document. The Save button doesn't indicate a change. When the docoment is printed or exported to PDF, incorrect pictures in tables are printed incorrectly. After manual "correction (step 2)" the table/picture is printed/exported correctly. The correction can't be saved to file: It is only corrected in the display/presentation layer, not in the odt file.

LO Writer 7.2.4.1 behaves in the same way:
0) Version info for Writer 7.2: 72_00_version_info.txt
1) Table shrunk and hidden by picture: 72_01_file_opened.png
2) Click on table border: 72_02_click_on_table_border.png
3) Table/picture appear correcly again: 72_03_correct_display.png
Comment 14 hgp 2021-12-29 14:26:39 UTC
Created attachment 177191 [details]
70_00_version_info
Comment 15 hgp 2021-12-29 14:27:28 UTC
Created attachment 177192 [details]
70_01_file_opened
Comment 16 hgp 2021-12-29 14:28:19 UTC
Created attachment 177193 [details]
70_02_click_on_table_border
Comment 17 hgp 2021-12-29 14:28:47 UTC
Created attachment 177194 [details]
70_03_correct_display
Comment 18 hgp 2021-12-29 14:29:18 UTC
Created attachment 177195 [details]
72_00_version_info
Comment 19 hgp 2021-12-29 14:29:47 UTC
Created attachment 177196 [details]
72_01_file_opened
Comment 20 hgp 2021-12-29 14:30:26 UTC
Created attachment 177197 [details]
72_02_click_on_table_border
Comment 21 hgp 2021-12-29 14:31:08 UTC
Created attachment 177198 [details]
72_03_correct_display