Bug 159087

Summary: Original table column widths of docx file are not preserved but changed in evenly sized column widths
Product: LibreOffice Reporter: Freek de Poel <freek>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan, freek, miguelangelrv
Priority: medium    
Version: 7.6.4.1 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103100    
Attachments: Sample file
Docx with table with different column widths

Description Freek de Poel 2024-01-09 13:08:52 UTC
Description:
When loading a docx file on a Mac the original column widths which vary are replaced by evenly sized column widths for all columns in the table.

Steps to Reproduce:
1. In Word create a file with a table with different column widths 
2. Load file in LibreOffice

Actual Results:
The table is displayed with evenly sized column widths

Expected Results:
The table is displayed with evenly sized column widths


Reproducible: Always


User Profile Reset: Yes

Additional Info:
The table should have been displayed with the original column widths of the Word docx file.
Comment 1 Freek de Poel 2024-01-09 13:12:09 UTC
The expected results are actually: 
The table should have been displayed with the original column widths of the Word docx file.
Comment 2 m_a_riosv 2024-01-09 15:13:50 UTC
Created attachment 191825 [details]
Sample file

I can't reproduce
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 3 Freek de Poel 2024-01-09 17:45:38 UTC
Created attachment 191827 [details]
Docx with table with different column widths

Attached file has been created on a MacOs. When converting the file from docx to pdf in Python script through LibreOffice the column sizes are evenly displayed. This happens when opening the file in LibreOffice.
Comment 4 m_a_riosv 2024-01-09 22:30:19 UTC
I can reproduce open directly your sample file with:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Seems the file was created with python.
But if I open with:
Microsoft® Word para Microsoft 365 MSO (versión 2312 compilación 16.0.17126.20126) de 64 bits
the first column has a different width.
But, doing a minimal modification on the first column width, and saving, then It
opens fine with LibreOffice.