Created attachment 162518 [details] Sample document (ODP) How to reproduce: - Open sample document. - "Save as..." PPTX file. - Restart LibreOffice or upload PPTX just saved to Office 365. - Observe how "bottom aligned" become "top aligned" and vice versa!
Created attachment 162519 [details] How it looks originally (ODP file)
Created attachment 162520 [details] How it looks after exporting as PPTX
Version: 7.0.0.0.beta2+ Build ID: 77e4943cc6cf206a45901e5c87fabf0f783c8262 CPU threads: 4; OS: Linux 5.6; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:libreoffice-7-0, Time: 2020-06-24_02:22:53
Reproduced in Version: 7.1.0.0.alpha0+ Build ID: 63f3485b57904de4e77c04f5759e6563fcce6748 CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded and Version: 5.2.0.0.alpha0+ Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53 Threads 4; Ver: 4.19; Render: default; Locale: en-US (en_US.UTF-8) and Version: 4.3.0.0.alpha1+ Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
@Regina, I thought you might be interested in this issue
It looks different, but the vertical anchor position is set correctly. You can examine it in the shape properties, section Text Options, in PowerPoint. The horizontal part is wrong. It should be "Top Centered", "Middle Centered" and "Bottom Centered" instead of "Top", "Middle" and "Bottom". And the option "Resize shape to fit text" should be checked, because both, width and height, are checked in LibreOffice. The problem with your links is, that the text box does not only contain the links, but contains line breaks in addition.
This commit c6dc94b147fdf522552640918cc1d1ef246eb04d solves the problem on libreoffice-7-3-2
(In reply to Gülşah Köse from comment #7) > This commit c6dc94b147fdf522552640918cc1d1ef246eb04d solves the problem on > libreoffice-7-3-2 Closing as duplicated of bug 146690 then *** This bug has been marked as a duplicate of bug 146690 ***
Created attachment 179050 [details] How it looks in Office 365 (exported in LO from ODP to PPTX on 2022-03-23) Today's -dev build still exhibits the original issue in my tests: Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: 131a06fb2e414d8b8e49cd03c6b45f715047bad1 CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US The issues does not show when opening the newly saved PPTX in LibreOffice. It is *still* there when opening the newly saved PPTX in Office 365.
Reopening based on comment #9. (And note sure to what extent this is related, but might Regina's note And the option "Resize shape to fit text" should be checked, because both, width and height, are checked in LibreOffice. be relevant here?)
Attila Szűcs committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/dc5a761df436f5d9de781d1fa6cf7d010f8be0e8 tdf#134401 SD: export to pptx: autoGrow->textWordWrap It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Attila Szűcs committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/1c7c0cdb90f703b963ec88180d12324e4b3afa2e tdf#134401 SD: export to pptx: autoGrow->textWordWrap It will be available in 24.2.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Actually the alignment was exported all right. The text in the text boxes contained 3 lines: 1 empty, 1 link, 1 empty. The text box itself was not tall enough. In PowerPoint line 2 was wrapped to two lines. But if you check the alignment of the whole text, it is OK, just the text overflows the text box and have the visual effect as if the alignment was inverted. Having said that, the fix to export now ensures that the second line does not wrap, so the exported PPTX would look similar in PowerPoint as the original ODP in LibreOffice.
Thanks for the background, Andras, and the fix, Attila. Verified with today's nightly build: Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 638f9bd2c6413588d7bcf3aac1b56bff03d20bb0 CPU threads: 12; OS: Linux 6.6; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US