Bug 109305 - The column attribute style:rel-column-width is wrongly read
Summary: The column attribute style:rel-column-width is wrongly read
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: http://docs.oasis-open.org/office/v1....
Whiteboard:
Keywords: filter:odt
: 135054 (view as bug list)
Depends on:
Blocks: ODF-import
  Show dependency treegraph
 
Reported: 2017-07-24 10:28 UTC by Regina Henschel
Modified: 2021-12-13 09:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Relative column width example (8.42 KB, application/vnd.oasis.opendocument.text)
2017-07-24 10:28 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2017-07-24 10:28:54 UTC
Created attachment 134813 [details]
Relative column width example

Section "20.330 style:rel-column-width" in the ODF spec describes how to calculate the actual column width this way:
"If rc is the relative with of the column, rs the sum of all relative columns widths, and ws the absolute width that is available for these columns the absolute width wc of the column is wc=rc ws/rs."

The attached document has a table of total width 11cm. The column C has a fixed with of 5cm. Column A and B have the relative width 1* and column D the relative width 2*. With this values I get:
ws = 11cm-5cm=6cm
rs = 4
Therefore the calculated absolute widths should be:
column A width 1*6cm/4 = 1.5cm
column B width 1*6cm/4 = 1.5cm
column C width 5cm (fixed)
column D width 2*6cm/4 = 3cm

But the widths by LibreOffice are
Column A width 2cm
Column B width 1.33cm
Column C width 5cm
Column D width 2.67cm
Comment 1 Yousuf Philips (jay) (retired) 2017-07-24 11:50:19 UTC
Opens correctly in Calligra Words 2.9.7, but not in LO master or Word 2013.

Version: 6.0.0.0.alpha0+
Build ID: 888f3f18cf42ca08f55a5e4826b4298f391e14aa
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 2 QA Administrators 2018-07-25 02:39:19 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2018-11-06 13:05:56 UTC
The error is still in Version: 6.2.0.0.alpha1+ (x64)
Build ID: f825e6d4082c0d0beb1c95b881f6a2ee9bfc9161
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-05_00:20:26
Locale: de-DE (en_US); Calc: CL
Comment 4 QA Administrators 2019-11-07 03:35:19 UTC Comment hidden (obsolete)
Comment 5 Regina Henschel 2020-09-11 19:54:58 UTC
The error still exists in Version: 7.0.0.2 (x64)
Build ID: c01aa64b6c3d89ebe5fe69c28c7adb24eb85249c
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL
Comment 6 Regina Henschel 2021-12-11 20:56:53 UTC
The error still exists in Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4ac9032163cf55c160145373e7c41741c9c339ca
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL
Comment 7 Heiko Tietze 2021-12-13 09:50:43 UTC
*** Bug 135054 has been marked as a duplicate of this bug. ***