Bug 165336 - FILESAVE PPTX:wrong picture/shape horizontal alignment which overrides paragraph alignment - seen only in PowerPoint
Summary: FILESAVE PPTX:wrong picture/shape horizontal alignment which overrides paragr...
Status: NEW
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: 165341
Blocks:
  Show dependency treegraph
 
Reported: 2025-02-19 15:08 UTC by Justin L
Modified: 2025-02-20 13:46 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
forum-mso-en-11064.pptx_export-compare-1.png: RED=25.8 master(today), BLUE=25.2 oldest, grayscale=MSO (118.01 KB, image/png)
2025-02-19 15:08 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2025-02-19 15:08:30 UTC
Created attachment 199322 [details]
forum-mso-en-11064.pptx_export-compare-1.png: RED=25.8 master(today), BLUE=25.2 oldest, grayscale=MSO

As reported in bug 165261 comment 3 - which ends up being a separate issue...

I'm seeing LOTS of examples where content is shifted when using PowerPoint as the viewer of the round-tripped files.

For example, when viewed in PowerPoint 2010 and 2019, attachment 199289 [details] (forum-mso-en-11064.pptx) : the label "Click these to see the options" is right-aligned, but after LO round trips it, it is centred. The positioning seems to be controlled by "Picture properties" and the "textbox vertical alignment" is still blank as before (an unknown display value I guess), but when set to "Top" it moves the text left to the expected place.

This started in 25.2 with commit 1d9ce0a67a71e51569cd33c26270eeece587a354
Author: Balazs Varga on Sun Oct 13 20:58:17 2024 +0200
    tdf#162571 - sd: Text box expands or shrinks on left or right or
    both sides, depending on the text alignment. Set the text anchor
    position based on the first paragraph alignment.

It appears to me that the shape/picture properties optionally override the paragraph alignment properties. This is probably something that LO does not currently support - and the change has just exposed missing functionality?

Also seen only in PowerPoint with:
- Thomas carte.pptx (attachment 130416 [details] from bug 105329) "It is my birthday"
- tabs.pptx (attachment 129920 [details] from bug 104909)
- R-L.pptx (attachment 114856 [details] from bug 90673)

and I assume it is the same problem with fdo75409-1, fdo76129-2, fdo78308-1, forum-mso-en-5867,lp734726-2, novell464996-2, 622163-2, ooo119898-1,ooo119899-1, tdf77881-9, tdf95345-1, tdf100662-1, tdf103936-1, tdf107516-1, tdf125072-2, tdf129372-2, tdf77691-1, and tdf68759-1.
Comment 1 Justin L 2025-02-19 15:34:54 UTC
Just to be clear - I filed this report after testing that bug 165261's
commit 837e2cd1c0d79299f470f747b3216c662584b1d2
    tdf#165261 - PPTX import: fix text in shape is left-aligned
did NOT fix forum-mso-en-11064.pptx, R-L.pptx, or tabs.pptx,

HOWEVER, that commit DID fix another one of my examples - forum-mso-en-9173.pptx. It also fixed Thomas Carte.pptx.