summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorRohit Deshmukh <rohit.deshmukh@synerzip.com>2014-08-27 12:43:29 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-08-29 03:07:55 -0500
commit96dc17221c286dd02772f1dd54b4ffc3c3091b9a (patch)
tree36fcf457f00162d87144808b1e32ecd86da9477e /sw/qa
parent6045c38f86fc6e96610dcd9a055892af21ea2629 (diff)
fdo#83044:Fix for corruption of file with SDT content.
Issue: w:text has a wrong child w:docPartGallery and w:docPartUnique. Change-Id: If1dd6ff15cbba2868c93795051a5328a074721d0 Reviewed-on: https://gerrit.libreoffice.org/11146 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/data/fdo83044.docxbin0 -> 25970 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/fdo83044.docx b/sw/qa/extras/ooxmlexport/data/fdo83044.docx
new file mode 100644
index 000000000000..01d32bfdb833
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/fdo83044.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index f843c24b8d27..3cda4ce31328 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -201,6 +201,15 @@ DECLARE_OOXMLEXPORT_TEST(testFirstHeaderFooter, "first-header-footer.docx")
CPPUNIT_ASSERT_EQUAL(OUString("Even page footer 2"), parseDump("/root/page[6]/footer/txt/text()"));
}
+DECLARE_OOXMLEXPORT_TEST(testFDO83044, "fdo83044.docx")
+{
+ xmlDocPtr pXmlDoc = parseExport("word/document.xml");
+
+ if (!pXmlDoc)
+ return;
+
+ assertXPath(pXmlDoc, "/w:document/w:body/w:sdt/w:sdtPr/w:text", 1);
+}
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */