Bug 169559 - FILESAVE PPTX Paragraph styles Above/Below paragraph spacing value saved as direct formatting
Summary: FILESAVE PPTX Paragraph styles Above/Below paragraph spacing value saved as d...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PPTX-Paragraph
  Show dependency treegraph
 
Reported: 2025-11-19 22:23 UTC by Gabor Kelemen (Collabora)
Modified: 2025-11-23 16:06 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Outline 2 style in the original document and in the saved PPTX (99.44 KB, image/png)
2025-11-19 22:23 UTC, Gabor Kelemen (Collabora)
Details
Third PPTX version of the original file (8.45 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2025-11-19 22:24 UTC, Gabor Kelemen (Collabora)
Details
The third and second PPTX in PP 2016 (115.06 KB, image/png)
2025-11-19 22:27 UTC, Gabor Kelemen (Collabora)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (Collabora) 2025-11-19 22:23:20 UTC
Created attachment 204119 [details]
Outline 2 style in the original document and in the saved PPTX

This is related to bug 169548 and bug 169524

In Impress, there are paragraph styles supported, but not in PP.
As can be seen with attachment 204073 [details] from bug 169524 and its twice saved as PPTX version attachment 204108 [details] from bug 169548, some of their settings are applied incorrectly.

The default "Outline n" paragraph styles have a bit of default Above paragraph spacing set, 0.50 cm for Outline 1 and 0.40 cm for Outline 2, which styles are used in  attachment 204073 [details].
In this case, these are overridden by 0.6 cm Below paragraph spacing for Outline 1 and 0.2 cm Below paragraph spacing for Outline 2.

Upon export to PPTX, these can not be represented correctly as para styles, so they are not converted to anything sensible and are lost. This can be seen in attachment 204074 [details] from bug 169524 and in the above attached screenshot.

However... upon reopening the saved PPTX, the default Above paragraph spacing values are "seen" for the Outline 1-2 styles, but not yet applied.

Then upon saving the PPTX for a second time, some information is lost - I'm not sure what exactly: there is no difference in PP between the first and second (attachment 204108 [details]) saved PPTX files.

But after reload, these values from Outline 1-2 are now applied to the paragraphs (Outline 1 to not bulleted ones and bullet level 1s, Outline 2 to bullet level 2s), so they have more spacing above than in the original file.

After save to PPTX the third time, these values are actually written and visible in PP as well.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c8fa51cec19eb89ef1506adfd461e5fdbcb4477a
CPU threads: 32; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: hu-HU
Calc: threaded

Unlikely that this was ever working correctly, but there are many steps, any can be considered "broken" by a given commit or another.
Comment 1 Gabor Kelemen (Collabora) 2025-11-19 22:24:38 UTC
Created attachment 204120 [details]
Third PPTX version of the original file
Comment 2 Gabor Kelemen (Collabora) 2025-11-19 22:27:52 UTC
Created attachment 204121 [details]
The third and second PPTX in PP 2016