[Libreoffice-bugs] [Bug 139722] cannot insert image in sheet with large row height

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jan 18 01:44:09 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=139722

--- Comment #1 from Regina Henschel <rb.henschel at t-online.de> ---
The error comes in this way (values as I see them in VS when loading the file):

On loading the file:
ScTable::SetDrawPageSize calculates (with considering row height and column
width)
tools::Long x = 8191217
tools::Long y = 3146121216
Then it builds Size(x,y) and calls ScDrawLayer::SetPageSize
That makes pPage->SetSize(), which is a call to Sdr::SetSize()
And there are assignments
mnWidth = aSiz.Width();
mnHeight = aSiz.Height();
But the members mnWidth and mnHeight are of type sal_Int32.
That results in mnHeight = -1148846080.

And this negative page height is used in ScLimitSizeOnDrawPage in fuins1.cxx,
when the image is inserted and gives the wrong pos and size of the image.

A fix is beyond my current skills.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210118/d26f745b/attachment.htm>


More information about the Libreoffice-bugs mailing list