Bug 158565 - FILEOPEN PPTX Vertical alignment in table cells with rotated text is incorrect
Summary: FILEOPEN PPTX Vertical alignment in table cells with rotated text is incorrect
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, implementationError
Depends on:
Blocks: PPTX-Tables
  Show dependency treegraph
 
Reported: 2023-12-06 13:37 UTC by Gabor Kelemen (allotropia)
Modified: 2024-04-05 10:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from PP 2016 (35.05 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2023-12-06 13:37 UTC, Gabor Kelemen (allotropia)
Details
The first slide of the new example file in PP 2016 and Impress master (94.92 KB, image/png)
2023-12-06 13:39 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-12-06 13:37:34 UTC
Created attachment 191270 [details]
Example file from PP 2016

Attached example file contains a table with 90 and 270 degrees rotated text, which is also vertically aligned to the top, center and bottom of the cells. Also there is left, centered and right text alignment, but that does not seem to influence the result in Impress.

In Impress these settings seem to be interpreted correctly, at least in the toolbar icons are enabled. But the text rendering is incorrect, sticking to the left side of the cells regardless of the alignment setting.

1. Open attached file
-> text in cells is not vertically aligned top/center/bottom (left/center/right), but always "left".

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 43967453e15e1d054972a7586cfef8f8e0866270
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Seems to have started in 5.4 with:

https://git.libreoffice.org/core/+/2436cf17304f25c7d34da52a321d6da0e9011d19%5E%21/#F0

author	Tamás Zolnai <tamas.zolnai@collabora.com>	Fri Apr 07 14:17:57 2017 +0200
committer	Tamás Zolnai <tamas.zolnai@collabora.com>	Sat Apr 15 15:40:56 2017 +0200

tdf#100926: PPTX import of table with rotated text

Before this there was no rotation, but the vertical alignment was applied correctly to the text.
Comment 1 Gabor Kelemen (allotropia) 2023-12-06 13:39:14 UTC
Created attachment 191271 [details]
The first slide of the new example file in PP 2016 and Impress master

Also the row height is not the same, text is not broken to multiple rows inside the cells. This too started with the bibisected change.
Comment 2 Rafael Lima 2023-12-08 13:47:32 UTC
Repro in

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 07036eea5089feae511145412d7105cb76c1955a
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded

Setting this to NEW