summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-03-07 17:58:59 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-03-07 18:07:56 +0100
commitaaef39de32442203d631a65aecf23eeb27dfbb12 (patch)
tree80820717fbbe3983535795973f975b14e1626978 /sw
parentf118539fd18f7455d1bf4c4d6d1fa18ce04ebf90 (diff)
DOCX strict import: fix pictures as well
Change-Id: I29f12eb1e5bfc39dc7d76efcff50dced061f7969
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlimport/data/strict.docxbin13345 -> 14570 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx3
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
index 57d671f72bbe..b48b70855b47 100644
--- a/sw/qa/extras/ooxmlimport/data/strict.docx
+++ b/sw/qa/extras/ooxmlimport/data/strict.docx
Binary files differ
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