https://issues.apache.org/ooo/show_bug.cgi?id=121977
--- Comment #7 from Oliver-Rainer Wittmann <[email protected]> --- (In reply to Andre from comment #5) > There seems to be a general problem with the bug doc. MS Office 2013 opens > the document in a protected view and reports "Office has detected a problem > with this file. Editing it may harm your computer. Click for more details." > But there are no noteworthy details. > > Replacing > > aGrid.SetLines(writer_cast<sal_uInt16>(nTextareaHeight/nLinePitch)); > > with > > if (nLinePitch > 0) > aGrid.SetLines(writer_cast<sal_uInt16>(nTextareaHeight/nLinePitch)); > > results in the document being correctly loaded (looks the same as what MS > Office shows in its viewer). > Maybe that is enough of a fix? >From my point of view with fix would be enough to fix the problem. I have some further changes in mind to improve the corresponding method. -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.
