diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-21 12:56:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-21 13:02:31 +0100 |
commit | 3f6df3835fec71ea61894f9a3bbfe5e4a06a5495 (patch) | |
tree | 3a6827b94d6c1834a9cd37a50b3a57eacd942394 | |
parent | e8f8f24c8415898c787bbfb629247ed62e73a2b9 (diff) |
DOCX export: fix image counters for multiple documents
The next commit will have a testcase for this, too.
Change-Id: Ia4ed1bb5095cc1ade78a404ec3328b7d1349dc3d
-rw-r--r-- | sw/source/filter/ww8/docxexport.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx index e004cc5f3120..2f416e554ecb 100644 --- a/sw/source/filter/ww8/docxexport.cxx +++ b/sw/source/filter/ww8/docxexport.cxx @@ -379,6 +379,9 @@ void DocxExport::ExportDocument_Impl() // init sections m_pSections = new MSWordSections( *this ); + // Make sure images are counted from one, even when exporting multiple documents. + oox::drawingml::DrawingML::ResetCounters(); + WriteMainText(); WriteFootnotesEndnotes(); |