<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Calc 6.3: Asian Font is Wrongly Applied to Western Text"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126248#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Calc 6.3: Asian Font is Wrongly Applied to Western Text"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126248">bug 126248</a>
from <span class="vcard"><a class="email" href="mailto:suokunlong@126.com" title="Kevin Suo <suokunlong@126.com>"> <span class="fn">Kevin Suo</span></a>
</span></b>
<pre>(In reply to Luboš Luňák from <a href="show_bug.cgi?id=126248#c8">comment #8</a>)
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>