Bug 148564

Summary: FILEOPEN RTF Table with undefined left-right cell padding gets 0 padding
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: WriterAssignee: Gabor Kelemen (allotropia) <kelemeng>
Status: ASSIGNED ---    
Severity: normal CC: aron.budea, dgp-mail, vmiklos
Priority: medium Keywords: bibisected, bisected, regression
Version: 5.2.0.4 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=74795
https://bugs.documentfoundation.org/show_bug.cgi?id=134062
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112765    
Attachments: The last three rows padding settings in Word and Writer
Table options dialog of another example file

Description Gabor Kelemen (allotropia) 2022-04-13 12:20:54 UTC
Created attachment 179521 [details]
The last three rows padding settings in Word and Writer

RTF attachment 179517 [details] from bug 148560 contains a table where the table level cell padding is undefined for the left and right directions in Word.
When opened in Writer these values are set to 0, but Word sets them to 0.05 cm and 0.3 cm depending on how many cells are there in a row.

1, Open attached file in Writer
2, Open the Table Properties dialog in Writer, observe that on Borders tab, Padding is set to 0.
3, Open attached file in Word
4, Open the Reveal Formatting side bar and click into the table of the document.
5, Observe that for the first two rows it shows 0.03 cm, as seen on attachment 179518 [details], and for the last three rows it shows 0.05 cm as seen on the now attached image.
At the same time the Table Options dialog in Word shows the Left and Right padding are undefined in this file, and the Cell Options dialog shows there is no cell-level padding set.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6f39602ecb9b90795bfd4101273f90b16f17b6d6
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded Jumbo

Seems to have started in 5.2 with:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=db1a4f8d1d44351ca65742d3d94371a0c0536ff2

author	Miklos Vajna <vmiklos@collabora.co.uk>	2016-05-25 12:30:18 +0200
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2016-05-25 14:45:20 +0000
commit db1a4f8d1d44351ca65742d3d94371a0c0536ff2 (patch)

tdf#74795 RTF import: handle row-level default cell margins

Adding CC to: Miklos Vajna
Comment 1 Gabor Kelemen (allotropia) 2022-04-13 12:21:45 UTC
Created attachment 179522 [details]
Table options dialog of another example file

The same thing happens with attachment 179489 [details] from bug 148540
Comment 2 Dieter 2022-05-02 06:53:38 UTC
I confirm it with

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 83d0f2eebae41d431d9a5bfd1a918523977752d0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

(compared with Word 2016)
Comment 3 Miklos Vajna 2023-11-06 10:54:55 UTC
This is assigned already, so removing it from my dashboard.