Bug 167723 - FILEOPEN DOCX Horizontal lines inside table opened with incorrect length
Summary: FILEOPEN DOCX Horizontal lines inside table opened with incorrect length
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Shapes
  Show dependency treegraph
 
Reported: 2025-07-29 16:48 UTC by Gabor Kelemen (allotropia)
Modified: 2025-07-29 16:54 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word (11.66 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-07-29 16:48 UTC, Gabor Kelemen (allotropia)
Details
The example file in Word and Writer - center cells line became a point (58.73 KB, image/png)
2025-07-29 16:49 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) 2025-07-29 16:48:53 UTC
Created attachment 202068 [details]
Example file from Word

This is similar to bug 167714 for docx case.

When the attached file with horizontal lines is opened in Writer, the line in the first tables left cell opens as full page width (instead of cell width).

The lines in the second and third tables center and right cells open as points.

1. Open attached file
-> The lines in the tables have incorrect lengths

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: de-DE (fr_FR); UI: en-US
Calc: threaded

This changed last in 6.1 commit:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=b360322c63d62b54b5e6adac4def3f8b761dc1da

author	Justin Luth <justin_luth@sil.org>	2017-09-18 14:57:47 -0400
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2017-12-04 15:05:01 +0100
commit b360322c63d62b54b5e6adac4def3f8b761dc1da (patch)

tdf#97648 ooxmlimport: calculate percentage-based widths

Before this it was even worse (first and second lines were also points), so this was an improvement.

Curiously, when compared with the docx attachment 202057 [details] from bug #167714 comment #1 - there I have set some colors to the same horizontal lines inside tables and those are imported fine, vs this file where color is left as the default grey.
Comment 1 Gabor Kelemen (allotropia) 2025-07-29 16:49:54 UTC
Created attachment 202069 [details]
The example file in Word and Writer - center cells line became a point
Comment 2 BogdanB 2025-07-29 16:54:56 UTC
Confirm with
Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded