summaryrefslogtreecommitdiff
path: root/sw/qa/extras/rtftok/rtftok.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-03-24 14:55:09 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-03-24 16:49:28 +0100
commit5e994d528c67e4db1e0ef7ba01349a51acbdacb3 (patch)
tree71daa08106110393c8505261099812dd5a5376b9 /sw/qa/extras/rtftok/rtftok.cxx
parent0d9132c5046e15540abc20e45d64080708626441 (diff)
fdo#47036 fix RTF import of multi-paragraph exact height textboxes
Diffstat (limited to 'sw/qa/extras/rtftok/rtftok.cxx')
-rw-r--r--sw/qa/extras/rtftok/rtftok.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/rtftok/rtftok.cxx b/sw/qa/extras/rtftok/rtftok.cxx
index a47ca3618d7a..0628268b9267 100644
--- a/sw/qa/extras/rtftok/rtftok.cxx
+++ b/sw/qa/extras/rtftok/rtftok.cxx
@@ -418,6 +418,11 @@ void RtfModelTest::testFdo47036()
}
// The image at the document start was ignored.
CPPUNIT_ASSERT_EQUAL(1, nAtCharacter);
+
+ // There should be 2 textboxes, not 4
+ uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xIndexAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY);
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(2), xIndexAccess->getCount());
}
CPPUNIT_TEST_SUITE_REGISTRATION(RtfModelTest);