summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-02-18 17:34:06 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-02-18 17:38:37 +0100
commit874f0a1be443b8027d5aba2285866f31cf4169e5 (patch)
tree03b444daa76532fcc5efccecdd31e617ea9b9fec /sw
parenta5cf6acfab9982bb29bc7df107a34897537bc0b8 (diff)
n#779642: ignore framePr inside table or the table import won't work
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlimport/data/n779642.docxbin0 -> 85485 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/n779642.docx b/sw/qa/extras/ooxmlimport/data/n779642.docx
new file mode 100644
index 000000000000..2fe9a176689b
--- /dev/null
+++ b/sw/qa/extras/ooxmlimport/data/n779642.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 3abfa6d5b388..ce07b6f97238 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -114,6 +114,7 @@ public:
void testN793262();
void testN793998();
void testGroupshapeLine();
+ void testN779642();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
@@ -180,6 +181,7 @@ void Test::run()
{"n793262.docx", &Test::testN793262},
{"n793998.docx", &Test::testN793998},
{"groupshape-line.docx", &Test::testGroupshapeLine},
+ {"n779642.docx", &Test::testN779642},
};
header();
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
@@ -1159,6 +1161,13 @@ void Test::testN793998()
CPPUNIT_ASSERT(nTextPortion + nTabPortion > nParagraph - nRightMargin);
}
+void Test::testN779642()
+{
+ uno::Reference<text::XTextTablesSupplier> xTextTablesSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xTables(xTextTablesSupplier->getTextTables(), uno::UNO_QUERY);
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(2), xTables->getCount());
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();