From c7aed931dd3d3f51c1d5d6ef17650f31528fb04b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 5 Jun 2014 17:18:45 +0200 Subject: 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 --- sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 4 +--- 1 file changed, 1 insertion(+), 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 xTextFramesSupplier(mxComponent, uno::UNO_QUERY); - uno::Reference xIndexAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY); - uno::Reference xFrame(xIndexAccess->getByIndex(0), uno::UNO_QUERY); + uno::Reference xFrame(getShape(1), uno::UNO_QUERY); CPPUNIT_ASSERT_EQUAL(sal_Int32(900), getProperty(getRun(getParagraphOfText(1, xFrame->getText()), 1), "CharRotation")); } -- cgit