[Libreoffice-bugs] [Bug 143554] LibreOffice Writer Table Measurement Width problem Error of 1mm cannot remove completely
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 26 21:41:09 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=143554
Regina Henschel <rb.henschel at t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rb.henschel at t-online.de
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Regina Henschel <rb.henschel at t-online.de> ---
There is currently no way to avoid it. LibreOffice uses internally integral
unit twip in Writer and Calc and use integral 1/100 mm in Draw/Impress, file
save and API (macros).
1 twip = 127/72 * 1/100 mm and 1/100 mm = 72/127 twip.
So 5mm = 500 * 1/100 mm = 500 * 72/127 twip = 283.4645 twip, rounds down to 283
twip.
283 twip = 283 * 127/72 * 1/100mm = 499.1805 * 1/100mm, rounds down to 499 *
1/100mm = 4.99mm
4.99mm = 499 * 1/100 mm = 499 * 72/127 twip = 282.8976 twip, rounds up to 283
twip.
So with internal integral unit twip it is not possible to distinguish 4.99 mm
from 5.00 mm.
There had been discussions to change from integral 1/100 mm to a floating point
1/100 mm for to get better precision in internal unit conversions. That would
be such a huge change with danger of lot of regressions, that it cannot be done
on the side, but needs a paid developer over some time. So it is unlikely, that
an improvement will happen in the near term.
The problem is not restricted to column or table width.
*** This bug has been marked as a duplicate of bug 75915 ***
--
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/20210726/b5b34683/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list