summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-09-20 16:29:54 +0200
committerAndras Timar <andras.timar@collabora.com>2017-09-26 12:29:50 +0200
commit38c924c55e5b4fe35c53e3b0ec6c07f4dad80320 (patch)
tree5bf8f05bbd3981be702123b51aebeafc4e3ab108 /sc
parent7ec18dc333ef110c842f0b153c01cf18b864ba8c (diff)
tdf#112089 add charts to the ShapeMap
Charts weren't added to the collection what resulted in missing ids during export (target field). Change-Id: Ie96a4e33a52c5448342a3c3dcec0d8e8b244e270 Reviewed-on: https://gerrit.libreoffice.org/42552 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xeescher.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx
index e0eb7775549b..ac175ca9b135 100644
--- a/sc/source/filter/excel/xeescher.cxx
+++ b/sc/source/filter/excel/xeescher.cxx
@@ -1137,7 +1137,8 @@ void XclExpChartObj::SaveXml( XclExpXmlStream& rStrm )
ChartExport aChartExport(XML_xdr, pDrawing, xModel, &rStrm, drawingml::DOCUMENT_XLSX);
static sal_Int32 nChartCount = 0;
nChartCount++;
- aChartExport.WriteChartObj( mxShape, nChartCount );
+ sal_Int32 nID = rStrm.GetUniqueId();
+ aChartExport.WriteChartObj( mxShape, nID, nChartCount );
// TODO: get the correcto chart number
}