Bug 170241 - FILESAVE PPTX OLE objects on different slides get overwritten on save
Summary: FILESAVE PPTX OLE objects on different slides get overwritten on save
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All All
: medium normal
Assignee: Aron Budea
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PPTX-OLE
  Show dependency treegraph
 
Reported: 2026-01-06 05:41 UTC by Aron Budea
Modified: 2026-01-08 16:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample ODP (16.42 KB, application/vnd.oasis.opendocument.presentation)
2026-01-06 05:41 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2026-01-06 05:41:03 UTC
Created attachment 204936 [details]
Sample ODP

The attached ODP contains three slides, with an embedded WordPad OLE object on each.
Open and save it as PPTX.

After unzipping the PPTX, note how there's only a 'ppt/embeddings/oleObject1.bin', and no 'oleObject2.bin' and 'oleObject3.bin'. The single 'oleObject1.bin' is referenced from each 'ppt/slides/_rels/slideN.xml.rels'.

This occurs since the following commit in 5.2:
https://git.libreoffice.org/core/commit/00d1c2800c10d542673ab6f5a5baa26aa1cbb20e
https://cgit.freedesktop.org/libreoffice/core/commit/?id=00d1c2800c10d542673ab6f5a5baa26aa1cbb20e
author		Michael Stahl <mstahl@redhat.com>	Mon Jan 11 10:59:17 2016 +0100
committer	Michael Stahl <mstahl@redhat.com>	Mon Jan 11 11:22:25 2016 +0100

"oox: deterministic oleObject stream numbering"

The problem is that the commit changed the global counter to a member variable, causing it to start from 1 on each slide.