Question about Bug 40686: Opening the attached file crashes LibreOffice - FILEOPEN

Dézsi Szabolcs dezsiszabi at hotmail.com
Thu Mar 8 03:35:00 PST 2012


Hi!

Here's the bug's page: https://bugs.freedesktop.org/show_bug.cgi?id=40686
It seems that a division by zero occurs on line 310 in ww8par6.cxx: aGrid.SetLines(writer_cast<sal_uInt16>(nTextareaHeight/nLinePitch));
nLinePitch is 0 here.
This causes some doc files to crash LO.

Adding a simple if( nLinePitch != 0 ) before the line seems to solve the problem, documents load with it.

Question: should I use this solution (if it's a solution) or this causes other issues somewhere else?

Szabolcs
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120308/d6a2e11b/attachment.html>


More information about the LibreOffice mailing list