Bug 145519

Summary: LODraw: Vertical alignment of text anchor, set in a style, does not apply in shapes
Product: LibreOffice Reporter: James Harkins <jamshark70>
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INSUFFICIENTDATA    
Severity: normal    
Priority: medium    
Version: 7.2.2.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:

Description James Harkins 2021-11-03 04:00:20 UTC
Description:
If I define a desired text positioning (anchor) in a graphics style in LO Draw, and then apply this style to a shape, the shape receives only the horizontal positioning from the style's anchor. It ignores vertical positioning from the style.

Steps to Reproduce:
1. Create a new drawing.
2. Create a new graphics style underneath "Object without fill." In this new style, set the text anchor to top-left.
3. Create a rectangle (not using "text box" -- the drawing shape in the left toolbar).
4. Hit F2 and type some text. It will appear at the default center anchor.
5. Now assign this rectangle to the new style created in step 2.

Actual Results:
Actual behavior: Only the horizontal alignment from the style applies. The text is displayed at left, but vertically centered (contrary to the style). (Note that the standard Object without fill style specifies an H=center, V=top anchor, but the shape ends up with V=center too. So it isn't only for user-created styles.)

Expected Results:
Expected behavior: The text in the rectangle should be positioned fully according to the anchor (top left).


Reproducible: Always


User Profile Reset: No



Additional Info:
If you select the rectangle and go to Format --> Text attributes, here, the anchor is H=left, V=center.

So I would have to guess that the vertical alignment property is not being applied properly to the shape.

Note, though, that it does work to set the anchor under Format --> Text attributes and then create a new style based on the selection. This is a not-entirely-unacceptable workaround; however, users may reasonably expect the style definition to be applied, and it isn't.
Comment 1 Akshit 2021-11-15 09:53:37 UTC
Hello James Harkins,

Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.

(Please note that the attachment will be public, remove any sensitive information before attaching it. See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 QA Administrators 2022-05-15 03:45:38 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2022-06-15 03:41:42 UTC
Dear James Harkins,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp