From 269585d6b461b565fe75f77b6dbf219749edc5ab Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 8 Mar 2023 08:04:09 +0100 Subject: 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 --- include/oox/export/drawingml.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/oox/export/drawingml.hxx b/include/oox/export/drawingml.hxx index 21914fbf57d1..5dc243e8536c 100644 --- a/include/oox/export/drawingml.hxx +++ b/include/oox/export/drawingml.hxx @@ -163,6 +163,7 @@ protected: /// If set, this is the parent of the currently handled shape. css::uno::Reference m_xParent; bool mbIsBackgroundDark; + static sal_Int32 mnChartCount; /// True when exporting presentation placeholder shape. bool mbPlaceholder; -- cgit