diff options
author | sushil_shinde <sushil.shinde@synerzip.com> | 2014-03-19 18:34:45 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-23 11:02:16 +0100 |
commit | 23b65a84fd827555dfb84c7e2f78879c479c2f78 (patch) | |
tree | 67268495c42ca6639ab4e76d27eff53319c017d6 /sw/source/filter/ww8/docxexport.cxx | |
parent | cfde7ea8ee8526a66db22d690ef2de0f43c76d0b (diff) |
fdo#76356 : Docx file contianing chart in footer/header gets corrupted.
- Docx file with chart in footer/header or .bin file referred in chart
was getting corrupted.
- Embedded file for footer.xml was not grabbaged.
- .bin embedded files were not grab baged.
- Added grab bag support for both case.
- Added UT to check .bin files are grab baged properly.
Reviewed on:
https://gerrit.libreoffice.org/8674
Change-Id: I221e3867798fc2a3a42f6385d687e80b80a3678f
Diffstat (limited to 'sw/source/filter/ww8/docxexport.cxx')
-rw-r--r-- | sw/source/filter/ww8/docxexport.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx index 5e20cc31c2e2..ff74f3a4800a 100644 --- a/sw/source/filter/ww8/docxexport.cxx +++ b/sw/source/filter/ww8/docxexport.cxx @@ -1217,6 +1217,8 @@ void DocxExport::WriteEmbeddings() OUString contentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; if (embeddingPath.endsWith(OUString(".xlsm"))) contentType = "application/vnd.ms-excel.sheet.macroEnabled.12"; + else if (embeddingPath.endsWith(OUString(".bin"))) + contentType = "application/vnd.openxmlformats-officedocument.oleObject"; if ( embeddingsStream.is() ) { |