[Libreoffice-bugs] [Bug 140077] Fatal Error after insert a new line by Enter (std::bad_array_new_length)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Feb 21 15:39:51 UTC 2021


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

--- Comment #9 from Dave Gilbert <freedesktop at treblig.org> ---
and:
SwScriptInfo::CountCJKCharacters '承包人(全称): 重庆钢铁集团建设工程有限公司' nPos: 23 nEnd: 26
BreakIterator_Unicode::nextCharacters '承包人(全称): 重庆钢铁集团建设工程有限公司' oldStartPos:23
nStartPos: -1 nDone: 0 nCount: 1

so the nextCharacters is immediately exiting. I count 23 actual characters in
that string.

I think the 26 is coming from lcl_AddSpace in portxt.cxx:
        nPos = rInf.GetIdx();
        nEnd = rInf.GetIdx() + rPor.GetLen();

-- 
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/20210221/16f56cca/attachment.htm>


More information about the Libreoffice-bugs mailing list