Bug 155009 - FILEOPEN RTF Table left indent is 0.01 cm smaller than expected, error accumulates over save
Summary: FILEOPEN RTF Table left indent is 0.01 cm smaller than expected, error accumu...
Status: NEW
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: RTF-Tables
  Show dependency treegraph
 
Reported: 2023-04-25 12:17 UTC by Gabor Kelemen (allotropia)
Modified: 2023-05-07 11:31 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The table in Word 2016 and Writer master, original file (194.86 KB, image/png)
2023-04-25 12:17 UTC, Gabor Kelemen (allotropia)
Details
The example file after 3 load+save roundtrips in Writer (30.49 KB, application/msword)
2023-04-25 12:18 UTC, Gabor Kelemen (allotropia)
Details
The roundtripped file in Word 2016 and Writer (194.75 KB, image/png)
2023-04-25 12:19 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-04-25 12:17:50 UTC
Created attachment 186914 [details]
The table in Word 2016 and Writer master, original file

This is a followup to bug 153195

When the attachment 184892 [details] is opened in Writer, the left indent of the tables is 0.01 cm smaller than expected. This value is saved correctly and can accumulate over time with load&save cycles.

1. Open attachment 184892 [details] 
2. Open the tables properties, notice that the left indent is 2.18 cm. This is calculated by adding the 0.19 cm left cell padding to the left indent value of 2 cm, so that the layout matches Words. 
-> But this should be 2.19 cm and over 3 load&save cycles this error adds up, so when opened in Word the left indent is 1.97 cm instead of the original 2.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 006b35d50024b1932d84380b5d2fec1f7066bccd
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2023-04-25 12:18:29 UTC
Created attachment 186915 [details]
The example file after 3 load+save roundtrips in Writer
Comment 2 Gabor Kelemen (allotropia) 2023-04-25 12:19:51 UTC
Created attachment 186916 [details]
The roundtripped file in Word 2016 and Writer

In Word it has lost 0.03 cm, while in Writer it's already losing the fourth 0.01 cm left indent at opening.
Comment 3 Dieter 2023-05-07 11:31:31 UTC
I confirm it with

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 69d0be09ad81935f7da4b6f8d036c3562357d068
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-GB
Calc: CL threaded

Steps:
1. Open attachment 184829 [details]
2. Table properties -> Table -> spacing is -2,18 from left
3. Change spacing to -2,19 -> save and reload

Actual result:
-2,18 cm

Expected result
-2,19 cm