Bug 147855 - Incorrect word position in text box when aligning center
Summary: Incorrect word position in text box when aligning center
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-09 01:40 UTC by Po-Yen Huang
Modified: 2022-07-14 19:46 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Incorrect word position presentation saving in LibreOffice 5.2.7.2 (12.59 KB, application/vnd.oasis.opendocument.presentation)
2022-03-09 01:41 UTC, Po-Yen Huang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Po-Yen Huang 2022-03-09 01:40:16 UTC
Description:
When I set aligning center in text box, I will expect it aligns center horizontally and vertically, but if I save it using old version LibreOffice (actually 5.2.7.2), it will show incorrect word position (will align a little bottom, even if opening in latest version), but if I use same setting in later version (in this case 7.3.1.3) and save it, it will show in correct position (even if opening in older version).

This issue is the same on Windows and GNU/Linux.

Steps to Reproduce:
1.Insert a text box in Impress
2.Type any words in text box
3.Drag text box to enlarge it
4.Set align center (both horizontal and vertical)
5.Save it

Actual Results:
It will align a little bottom (but close to center) when saving in LibreOffice 5.2.7.2

Expected Results:
Align center in text box


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.3.1.3 / LibreOffice Community
Build ID: 30(Build:3)
CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
7.3.1-1
Calc: CL
Comment 1 Po-Yen Huang 2022-03-09 01:41:49 UTC
Created attachment 178738 [details]
Incorrect word position presentation saving in LibreOffice 5.2.7.2
Comment 2 Michele 2022-05-11 08:50:42 UTC
With latin alphabet, the vertical centering seems to work fine for me. So this may be related to management of non-latin characters.

On the other hand, maybe related issue:
if the text box is created without a fixed size in the first place (Insert->Text box and just single click, without spanning an area), then the _horizontal_ centering doesn't work correctly, even after resizing the text box.
Vertical centering works fine though.

Steps to Reproduce:
1.Insert a "floating" text box in Impress (not spanning an area, just inserting one with a single click in an empty area)
2.Type any words in text box
3.Drag text box to enlarge it
4.Set align center (horizontal)

Actual Results:
Text will align to the center of the original text box (i.e., if there are different lines, they will align to the center of the longest one of them)

Expected Results:
All lines should align to the center of the current text box
Comment 3 raal 2022-07-14 19:46:04 UTC
Hello, LO version 5.2.7.2 is End of life and not supported. If I understand correctly your description, everything works correctly in 7.3, so closing the bug.