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

--- Comment #11 from Regina Henschel <[email protected]> ---
The problem is in
https://opengrok.libreoffice.org/xref/core/oox/source/export/drawingml.cxx?r=3d236177#3326

pCustomShape->TakeTextAnchorRect(aAnchorRect);

If the nominal text area rectangle has height 5000, the top distance is 1500
and the bottom distance is 2500, then TakeTextAnchorRect gives the height of
the remaining area after subtracting the distances: 5000-1500-2500=1000

TakeTextAnchorRect is surely not the rectangle do you want. You get the text
area rectangle as defined in the shape geometry from the EnhancedCustomShape2d
of the shape. You can use the seqTextFrames[0] or the GetTextRect() method. The
latter considers flipping, but that effects only the position and not the
height of the rectangle.

Please keep in mind, that this part of code is not only used when you resave an
imported OOXML-document, but also when an ODP-document is exported.

There is another error in #3320, where Width is used instead of Height. But
that has no impact as long as the code part works with custom shapes.

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

Reply via email to