Bug 165323 - FILEOPEN PPTX: wrong vertical position of textboxes
Summary: FILEOPEN PPTX: wrong vertical position of textboxes
Status: VERIFIED DUPLICATE of bug 165321
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2025-02-18 19:52 UTC by Justin L
Modified: 2025-03-10 13:34 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
tdf89519-1.pptx_import-compare-2.png: overlay of slide 2 from bug 89519's attachment 113569 (108.61 KB, image/png)
2025-02-18 19:52 UTC, Justin L
Details
fdo51723-4.pptx_import-compare-7.png: Overlay of slide 7 from OS-storage2 (98.69 KB, image/png)
2025-02-21 13:27 UTC, Justin L
Details
Minimized version for the attachment 113569 text drifting problem (37.74 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2025-03-05 12:02 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2025-02-18 19:52:32 UTC
Created attachment 199293 [details]
tdf89519-1.pptx_import-compare-2.png: overlay of slide 2 from bug 89519's attachment 113569 [details]

Lots of examples are showing vertical drift. The attachment shows a hard-to-detect-with-the-human-eye example - where the RED indicates the wrong position. Prior to 25.2 it looked like the BLUE(LO), which matched the BLACK(MS).

They were vertically correct until
25.2 commit ebf13e890766f4cadbba81444784cfe3c8e1bbc3
Author: Balazs Varga on Thu Aug 8 10:18:24 2024 +0200
    tdf#156857: sd ooxml import: fix shape size if spAutofit is set

Steps to easily reproduce (with the human eye)
1.) look at slide 1 from PathTest_Repeat-2016.pptx (attachment 150434 [details] from bug 124457)

The text "And edit path" should be in the vertical middle of the slide, not near the bottom.

Also seen with
- test-impress.pptx (attachment 146336 [details] from bug 121189) slide 1: vertical position

Found by Collabora's mso-test
Comment 1 Justin L 2025-02-21 13:27:08 UTC
Created attachment 199362 [details]
fdo51723-4.pptx_import-compare-7.png: Overlay of slide 7 from OS-storage2

still a problem on today's master

Other examples:
-Bug 125072 impress loses footers when save to pptx.pptx (attachment 151126 [details] from bug 125072): "Text added here", "And here" ought to be near the vertical center.

-OS-storage2.pptx (attachment 63815 [details] from bug 51723) (slides 7,8,9,10)
Comment 2 Gabor Kelemen (allotropia) 2025-03-05 10:44:36 UTC
For PathTest_Repeat-2016.pptx looks like a smaller textbox is positioned incorrectly within a larger shape, which was manually resized in PP - it is set "Resize shape to fit text" but it is much larger than necessary to fit the text.
Comment 3 Gabor Kelemen (allotropia) 2025-03-05 12:02:36 UTC
Created attachment 199618 [details]
Minimized version for the  attachment 113569 [details] text drifting problem

Looks like here we have some grouped textboxes where the size was also changed manually in PP (Click on the box, press Shift+Up/Down arrow). After the commit, these seem to lose their vertical extent, seen in the green borders becoming lines.
Which seems to be the same thing as in bug 165321
Comment 4 Gabor Kelemen (allotropia) 2025-03-06 07:54:11 UTC
 test-impress.pptx (attachment 146336 [details]) is the same as PathTest_Repeat-2016.pptx - manually resized textbox.
Comment 5 Gabor Kelemen (allotropia) 2025-03-06 07:55:51 UTC
"(attachment 151126 [details] from bug 125072): "Text added here", "And here" ought to be near the vertical center." is also the same case as PathTest_Repeat-2016.pptx - manually resized textbox.
Comment 6 Balázs Varga (allotropia) 2025-03-06 15:52:23 UTC

*** This bug has been marked as a duplicate of bug 165321 ***
Comment 7 Justin L 2025-03-10 13:34:45 UTC
I checked all the example files I provided - they look good (related to this issue anyway).