summaryrefslogtreecommitdiff
path: root/sw/qa/extras
diff options
context:
space:
mode:
authorRohit Deshmukh <rohit.deshmukh@synerzip.com>2014-03-17 15:08:04 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-03-19 14:16:11 +0100
commit79747314d368ab253e171877209d7172fd993c74 (patch)
treed96f1d6b21035c3ae15c7e47992be23067195ba1 /sw/qa/extras
parent092be17c69b5789414da907197856c0d239da015 (diff)
fdo#76248: Fix for file corruption which contains Polyline shape.
Reviewed on: https://gerrit.libreoffice.org/8623 Change-Id: I042eeb0829c55d6a0fd5d85c1712c7b1cddc8c96
Diffstat (limited to 'sw/qa/extras')
-rw-r--r--sw/qa/extras/ooxmlexport/data/FDO76248.docxbin0 -> 22330 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx8
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/FDO76248.docx b/sw/qa/extras/ooxmlexport/data/FDO76248.docx
new file mode 100644
index 000000000000..c7b868e3f6ae
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/FDO76248.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 0a77ab5d75b5..6a50defc8c35 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -2878,6 +2878,14 @@ DECLARE_OOXMLEXPORT_TEST(testSimpleSdts, "simple-sdts.docx")
}
+DECLARE_OOXMLEXPORT_TEST(testFDO76248, "FDO76248.docx")
+{
+ uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
+ uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(xModel->getCurrentController(), uno::UNO_QUERY);
+ uno::Reference<text::XPageCursor> xCursor(xTextViewCursorSupplier->getViewCursor(), uno::UNO_QUERY);
+ xCursor->jumpToLastPage();
+ CPPUNIT_ASSERT_EQUAL(sal_Int16(3), xCursor->getPage());
+}
#endif