[Libreoffice-bugs] [Bug 126248] Calc 6.3: Asian Font is Wrongly Applied to Western Text

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jan 14 02:41:52 UTC 2020


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

--- Comment #9 from Kevin Suo <suokunlong at 126.com> ---
(In reply to Luboš Luňák from comment #8)

It is the following function which caused this bug:
SvtScriptType ScDocument::GetCellScriptType
Specifically, it is related to OUString aStr.

The bug is gone if I use back the following code:
OUString aStr = ScCellFormat::GetString(*this, rPos, nNumberFormat, &pColor,
*mxPoolHelper->GetFormTable());

and remove those lines added by that commit.

I see the main difference between these two version is,
previously the aStr is assigned a value:
OUString aStr = ScCellFormat::GetString

but in the new one, aStr is never assigned a value, but rather it is directly
used in cCellFormat::GetString call, while the nRet still uses aStr as an arg.

Is this correct? I am not familiar with c++ anyway. I added a std::cout and
then print the value of aStr - With the bug code, aStr is always blank (none?)
when I type in text in the cell. With the old code, aStr is correctly showing
the text I type in.

-- 
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/20200114/90d1ae6a/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list