diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-07 17:58:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-07 18:07:56 +0100 |
commit | aaef39de32442203d631a65aecf23eeb27dfbb12 (patch) | |
tree | 80820717fbbe3983535795973f975b14e1626978 /sw | |
parent | f118539fd18f7455d1bf4c4d6d1fa18ce04ebf90 (diff) |
DOCX strict import: fix pictures as well
Change-Id: I29f12eb1e5bfc39dc7d76efcff50dced061f7969
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/strict.docx | bin | 13345 -> 14570 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 3 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/strict.docx b/sw/qa/extras/ooxmlimport/data/strict.docx Binary files differindex 57d671f72bbe..b48b70855b47 100644 --- a/sw/qa/extras/ooxmlimport/data/strict.docx +++ b/sw/qa/extras/ooxmlimport/data/strict.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index d0c0b4a1280c..8428f3f3665a 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -1917,6 +1917,9 @@ DECLARE_OOXMLIMPORT_TEST(testStrict, "strict.docx") // Header in the document caused a crash on import. uno::Reference<text::XText> xHeaderText(xPageStyle->getPropertyValue("HeaderText"), uno::UNO_QUERY); getParagraphOfText(1, xHeaderText, "This is a header."); + + // Picture was missing, this resulted in a lang::IndexOutOfBoundsException. + getShape(1); } #endif |