[Libreoffice-bugs] [Bug 123569] FILESAVE DOCX: Rotated image is saved with wrong size/position

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Mar 1 18:23:29 UTC 2020


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

--- Comment #4 from Aron Budea <baron at caesar.elte.hu> ---
It seems that the following line uses the size of the original image, not the
size of the resized image:
aSize = pGrfNode->GetTwipSize();
https://opengrok.libreoffice.org/xref/core/sw/source/filter/ww8/docxattributeoutput.cxx?r=d55b26a0#4879

What complicates things is that the original rSize parameter in
DocxAttributeOutput::FlyFrameGraphic(...) is the frame's layout size, which is
the bounding rectangle of the resized+rotated image.

What seems to be needed is the size of the resized image, not sure where that
is stored/calculated (in ww8::Frame, maLayoutSize is the aforementioned layout
size, and maSize is the original size).

-- 
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/20200301/c92bb41c/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list