[Libreoffice-commits] core.git: sw/qa

Miklos Vajna vmiklos at collabora.co.uk
Thu Jun 5 08:30:34 PDT 2014


 sw/qa/extras/ooxmlimport/ooxmlimport.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit c7aed931dd3d3f51c1d5d6ef17650f31528fb04b
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Jun 5 17:18:45 2014 +0200

    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

diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index f003f33..0d7b6b7 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"));
 }
 


More information about the Libreoffice-commits mailing list