[Libreoffice-bugs] [Bug 130104] FILESAVE XLSX: cell indent ("stylesheet -> cellXfs -> xf -> alignment: indent") is increased by 3 times when resave an xlsx document (see comment 17)
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Jul 1 10:50:09 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=130104
--- Comment #18 from Kevin Suo <suokunlong at 126.com> ---
After some experiment I found that the correct calculation to restore the
indent value should be:
https://opengrok.libreoffice.org/xref/core/sc/source/filter/excel/xestyle.cxx?r=b8cfea65#1461:
nTmpIndent = nTmpIndent / (3 * nSpaceWidth )
where the nSpaceWidth is the width of space char for the font in use.
But I don't know how to get the width of space due to my poor understanding of
the code.
This is all I can do. Hope someone could fix this soon.
--
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/20210701/e5fee3a5/attachment.htm>
More information about the Libreoffice-bugs
mailing list