<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN: hang when opening particular Word document"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=55185#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN: hang when opening particular Word document"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=55185">bug 55185</a>
from <span class="vcard"><a class="email" href="mailto:libreoffice@arbruijn.dds.nl" title="libreoffice@arbruijn.dds.nl">libreoffice@arbruijn.dds.nl</a>
</span></b>
<pre>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.</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>