summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-06-05 17:18:45 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-06-05 17:30:00 +0200
commitc7aed931dd3d3f51c1d5d6ef17650f31528fb04b (patch)
treebe03d6c2aade521d574f19ce11a51da897106a4e
parent94ec76a1061db6c2068e190e26035cf0c59e0f79 (diff)
CppunitTest_sw_ooxmlimport's testFdo69636: use getShape()
getShape() doesn't case if the object is on a drawinglayer one or a Writer TextFrame, and that's exactly what we want. (Currently is a TextFrame, but will be a drawinglayer object when shape with text will be imported as shape with textbox.) Change-Id: I6ae981700d214447f326e6a0fb550b98380bc10c
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index f003f333680f..0d7b6b783766 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -1483,9 +1483,7 @@ DECLARE_OOXMLIMPORT_TEST(testDefaultSectBreakCols, "default-sect-break-cols.docx
DECLARE_OOXMLIMPORT_TEST(testFdo69636, "fdo69636.docx")
{
// The problem was that the mso-layout-flow-alt:bottom-to-top VML shape property wasn't handled for sw text frames.
- uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY);
- uno::Reference<container::XIndexAccess> xIndexAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY);
- uno::Reference<text::XTextRange> xFrame(xIndexAccess->getByIndex(0), uno::UNO_QUERY);
+ uno::Reference<text::XTextRange> xFrame(getShape(1), uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(sal_Int32(900), getProperty<sal_Int32>(getRun(getParagraphOfText(1, xFrame->getText()), 1), "CharRotation"));
}