Bug 159087 - Original table column widths of docx file are not preserved but changed in evenly sized column widths
Summary: Original table column widths of docx file are not preserved but changed in ev...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
 
Reported: 2024-01-09 13:08 UTC by Freek de Poel
Modified: 2024-02-20 12:55 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample file (12.23 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-01-09 15:13 UTC, m_a_riosv
Details
Docx with table with different column widths (61.83 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-01-09 17:45 UTC, Freek de Poel
Details

Note You need to log in before you can comment on or make changes to this bug.
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.