[Libreoffice-bugs] [Bug 127392] "Autofit text" reacts wrongly for custom shapes

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 6 17:38:39 UTC 2019


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

Regina Henschel <rb.henschel at t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|transparent shape causing   |"Autofit text" reacts
                   |text to be misaligned       |wrongly for custom shapes

--- Comment #5 from Regina Henschel <rb.henschel at t-online.de> ---
There is no "transparent shape", but that is a group. It has nothing to do with
the problem. Ungrouping shows the same error.

The problem exists independent from pptx import filter.

I'll attach an odp-document with two custom-shapes. The left one is from our
own set and therefore compatible to binary MS Office. The right one is from an
OOXML shape, imported from pptx. The text box settings have anchor to center,
the text alignment is horizontal and vertical center. The red rectangles mark
the text area of the shape.

Error: If you enable "Autofit text", the text is shifted to the right.
Expected: The text keeps centered.
[The tool "Autofit text" is not included in the toolbars, you have to customize
a toolbar to get it.]

In the example document, the error becomes only visible for the upper triangle,
because the lower triangle is a freeform (custGeom) and its text area is entire
width and height of the shape. Therefore the text fits into the text area. In
the upper triangle the text does not fit into the text area. In both cases the
text area has a right/left inset of 0.1inch and a top/bottom inset of 0.05inch.
For the upper triangle it is the default value, for the lower triangle it is
set explicitly. For both shapes "normAutofit" is set, which corresponds to our
"Autofit text on".

-- 
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/20190906/f1e15ede/attachment.html>


More information about the Libreoffice-bugs mailing list