Bug Hunting Session
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)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: http://docs.oasis-open.org/office/v1....
Keywords: filter:odt
Depends on:
Blocks: ODF-import
  Show dependency treegraph
Reported: 2017-07-24 10:28 UTC by Regina Henschel
Modified: 2018-11-06 13:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

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

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.

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: (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