[Libreoffice-bugs] [Bug 122110] FILESAVE XLSX, One of the cell changes its textcolor to blue for no apparent reason.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 1 13:54:23 UTC 2019


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

--- Comment #9 from Bartosz <gang65 at poczta.onet.pl> ---
The source code responsible for exporting "numFmt":
        <numFmt numFmtId="165"
formatCode="[Red][<=0.9]#.#%;[Blue][>1.1]#.#%;#.#%"/>

is available at sc/source/filter/excel/xestyle.cxx:

    rStyleSheet->singleElement( XML_numFmt,
            XML_numFmtId,   OString::number( mnXclNumFmt ).getStr(),
            XML_formatCode, OUStringToOString(maNumFmtString,
RTL_TEXTENCODING_UTF8).getStr(),
            FSEND );

And the set of "maNumFmtString" string is in:
    pNumFormat.reset(new XclExpNumFmt( nScNumFmt, nXclNumFmt,
GetNumberFormatCode( *this, nScNumFmt, xFormatter.get(), mpKeywordTable.get()
)));

So the interesting method for check is:
SvNumberFormatter::GetFormatStringForExcel
in svl/source/numbers/zforlist.cxx file.

-- 
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/20190601/4ced32df/attachment.html>


More information about the Libreoffice-bugs mailing list