<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi!<br><br>Here's the bug's page: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=40686">https://bugs.freedesktop.org/show_bug.cgi?id=40686</a><br>It seems that a division by zero occurs on line 310 in ww8par6.cxx: aGrid.SetLines(writer_cast&lt;sal_uInt16&gt;(nTextareaHeight/nLinePitch));<br>nLinePitch is 0 here.<br>This causes some doc files to crash LO.<br><br>Adding a simple if( nLinePitch != 0 ) before the line seems to solve the problem, documents load with it.<br><br>Question: should I use this solution (if it's a solution) or this causes other issues somewhere else?<br><br>Szabolcs<br>                                               </div></body>
</html>