https://issues.apache.org/ooo/show_bug.cgi?id=121977

--- Comment #5 from Andre <[email protected]> ---
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?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to