[Libreoffice-bugs] [Bug 55185] FILEOPEN: hang when opening particular Word document

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Nov 7 16:57:16 UTC 2020


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

--- Comment #13 from libreoffice at arbruijn.dds.nl ---
Apparently the checkbox in the document is positioned in a way that makes the
line with the checkbox 1 twip larger than the line width, which seems to result
in an underflow loop in the layout code.

This might be a result of SwFieldFormCheckboxPortion::Format always returning
false, while other Format methods seem to return true if the portion doesn't
fit.

I've changed the return false statement in SwFieldFormCheckboxPortion::Format
to
return rInf.X() + Width() > rInf.Width()
and that seems to work, the document opens without hanging.

-- 
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/20201107/6a0f5ab9/attachment.htm>


More information about the Libreoffice-bugs mailing list