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

--- Comment #9 from Kevin Suo <[email protected]> ---
(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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to