Issue 88284

Summary: If text orientation is not zero and a cell has two lines, horizontal centering does not work properly,
Product: Calc Reporter: ernstblaauw <ernst.blaauw>
Component: formattingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P4 CC: amy2008, gibi, issues
Version: OOo 2.4.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description ernstblaauw 2008-04-14 23:15:52 UTC
Hi,

If you have a cell containing two lines (added using a manual line break,
ctrl-enter), the behavior of the horizontal alignment is different depending on
the text orientation. If the text orientation is zero, the alignment looks like
this:

                  First
               Second Line

Which looks well. If I set the text orientation to a value different as zero,
the text orientation looks like:

               First 
               Second Line

That doesn't look well. The two lines are centered together, not the individual
lines.

How to reproduce this:
- Enter two lines in a cell using ctrl-enter
- Right click --> Format Cells...
- Go to the alignment tab
- Set the horizontal alignment to center
- Set the text orientation to, let's say, 145. (As ling it is not zero)
- Press 'OK'.

Now you'll see the wrongly aligned text.

Hopefully this is helpful to you!
Comment 1 amy2008 2008-08-25 08:25:30 UTC
Can reproduce it in OOO300_m3_en-US on WinXP. 
Please check it again.
Comment 2 kla 2008-08-25 14:55:55 UTC
confirmed
Comment 3 gibi 2010-06-24 17:32:44 UTC
Reproducible with DEV300m83 en-US Linux X64, so extending OS to "all".