[Libreoffice-bugs] [Bug 109305] New: The column attribute style: re-column-width is wrongly read

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 24 10:28:54 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=109305

            Bug ID: 109305
           Summary: The column attribute style:re-column-width is wrongly
                    read
           Product: LibreOffice
           Version: 6.0.0.0.alpha0+ Master
          Hardware: All
               URL: http://docs.oasis-open.org/office/v1.2/os/OpenDocument
                    -v1.2-os-part1.html#__RefHeading__1420120_253892949
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rb.henschel at t-online.de

Created attachment 134813
  --> https://bugs.documentfoundation.org/attachment.cgi?id=134813&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170724/550eab92/attachment.html>


More information about the Libreoffice-bugs mailing list