Bug 134401 - FILESAVE PPTX: vertical alignment inverted (bottom<->top) when saving textbox with link
Summary: FILESAVE PPTX: vertical alignment inverted (bottom<->top) when saving textbox...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:24.8.0 target:24.2.1
Keywords:
Depends on:
Blocks: PPTX-Textbox
  Show dependency treegraph
 
Reported: 2020-06-29 18:28 UTC by Gerald Pfeifer
Modified: 2024-01-22 19:44 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample document (ODP) (401.64 KB, application/vnd.oasis.opendocument.presentation)
2020-06-29 18:28 UTC, Gerald Pfeifer
Details
How it looks originally (ODP file) (25.46 KB, image/png)
2020-06-29 18:28 UTC, Gerald Pfeifer
Details
How it looks after exporting as PPTX (28.96 KB, image/png)
2020-06-29 18:29 UTC, Gerald Pfeifer
Details
How it looks in Office 365 (exported in LO from ODP to PPTX on 2022-03-23) (108.00 KB, image/png)
2022-03-23 15:23 UTC, Gerald Pfeifer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Pfeifer 2020-06-29 18:28:11 UTC
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!
Comment 1 Gerald Pfeifer 2020-06-29 18:28:55 UTC
Created attachment 162519 [details]
How it looks originally (ODP file)
Comment 2 Gerald Pfeifer 2020-06-29 18:29:46 UTC
Created attachment 162520 [details]
How it looks after exporting as PPTX
Comment 3 Gerald Pfeifer 2020-06-29 18:30:14 UTC
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
Comment 4 Xisco Faulí 2020-06-30 07:59:19 UTC
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
Comment 5 Xisco Faulí 2020-06-30 07:59:44 UTC
@Regina, I thought you might be interested in this issue
Comment 6 Regina Henschel 2020-06-30 13:05:50 UTC
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.
Comment 7 Gülşah Köse 2022-03-23 13:49:15 UTC
This commit c6dc94b147fdf522552640918cc1d1ef246eb04d solves the problem on libreoffice-7-3-2
Comment 8 Xisco Faulí 2022-03-23 13:52:13 UTC
(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 ***
Comment 9 Gerald Pfeifer 2022-03-23 15:23:38 UTC
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.
Comment 10 Gerald Pfeifer 2022-03-23 15:26:23 UTC
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?)
Comment 11 Commit Notification 2024-01-17 09:55:35 UTC
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.
Comment 12 Commit Notification 2024-01-19 13:01:51 UTC
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.
Comment 13 Andras Timar 2024-01-19 13:10:08 UTC
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.
Comment 14 Gerald Pfeifer 2024-01-22 15:56:28 UTC
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