[Libreoffice-bugs] [Bug 144116] FILESAVE XLSX Text indent setting not saved

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Sep 15 12:49:27 UTC 2021


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

Kevin Suo <suokunlong at 126.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |suokunlong at 126.com

--- Comment #5 from Kevin Suo <suokunlong at 126.com> ---
Does it save when you set a bigger indent value? This should be the same issue
as discussed in bug 130104.

When save as xlsx, the indent value should be convert to an interger value
(e.g.1, 2, 3, this is how OOXML defines it, these numbers mean the width of
white char multiplied by this int value). Thus a smaller indent in pt such as
2pt may be rounded to zero when converting to an interger value.

See
https://opengrok.libreoffice.org/xref/core/sc/source/filter/excel/xestyle.cxx?r=b8cfea65#1461

where it first calculates a nTmpIndent of type tools::Long
nTmpIndent = (nTmpIndent + 100) / 200; 

and then limit_cast it to an int:
mnIndent = limit_cast< sal_uInt8 >( nTmpIndent, 0, 15 );

-- 
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/20210915/02853950/attachment.htm>


More information about the Libreoffice-bugs mailing list