summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/docxexport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/ww8/docxexport.cxx')
-rw-r--r--sw/source/filter/ww8/docxexport.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx
index 2fdcadce6dd9..59b91603acc1 100644
--- a/sw/source/filter/ww8/docxexport.cxx
+++ b/sw/source/filter/ww8/docxexport.cxx
@@ -526,8 +526,10 @@ ErrCode DocxExport::ExportDocument_Impl()
// init sections
m_pSections.reset(new MSWordSections( *this ));
+ auto& rGraphicExportCache = oox::drawingml::GraphicExportCache::get();
+
// Make sure images are counted from one, even when exporting multiple documents.
- oox::drawingml::DrawingML::PushExportGraphics();
+ rGraphicExportCache.push();
WriteMainText();
@@ -555,7 +557,8 @@ ErrCode DocxExport::ExportDocument_Impl()
m_aLinkedTextboxesHelper.clear(); //final cleanup
m_pStyles.reset();
m_pSections.reset();
- oox::drawingml::DrawingML::PopExportGraphics();
+
+ rGraphicExportCache.pop();
return ERRCODE_NONE;
}