diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-03-08 08:04:09 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-03-08 08:06:59 +0000 |
commit | 269585d6b461b565fe75f77b6dbf219749edc5ab (patch) | |
tree | 4b495ccc449b20edbe3845ad6952a91f0d6db80d /sd/source | |
parent | d704f57a3dc87302ba75ae0c2904ad46e734d027 (diff) |
oox, sd: fix ever-increasing chart IDs when exporting to PPTX
Bring the static counter under the control of
DrawingML::ResetMlCounters(), so the first chart is always chart1.xml,
even if the same process already exported a chart previously.
XLSX is a separate codepath, this fix doesn't help with that yet.
Change-Id: Idf6e576ba94e254ae9782ef86e85542efd80127f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148457
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index 1ae7da9cc786..f857f10bec7f 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -428,6 +428,7 @@ bool PowerPointExport::importDocument() noexcept bool PowerPointExport::exportDocument() { + drawingml::DrawingML::ResetMlCounters(); DrawingML::PushExportGraphics(); maShapeMap.clear(); |