summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xestream.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx
index 75f03dfde94d..8d31023e4a57 100644
--- a/sc/source/filter/excel/xestream.cxx
+++ b/sc/source/filter/excel/xestream.cxx
@@ -1026,7 +1026,10 @@ bool XclExpXmlStream::exportDocument()
// Instead, write via XOutputStream instance.
tools::SvRef<SotStorage> rStorage = static_cast<SotStorage*>(nullptr);
drawingml::DrawingML::ResetMlCounters();
- drawingml::DrawingML::PushExportGraphics();
+
+ auto& rGraphicExportCache = drawingml::GraphicExportCache::get();
+
+ rGraphicExportCache.push();
XclExpRootData aData(
EXC_BIFF8, *pShell->GetMedium (), rStorage, rDoc,
@@ -1145,7 +1148,7 @@ bool XclExpXmlStream::exportDocument()
xStatusIndicator->end();
mpRoot = nullptr;
- drawingml::DrawingML::PopExportGraphics();
+ rGraphicExportCache.pop();
return true;
}