From 75ebb553bf6523e9548e4826bbbb2f12d2cbd3dc Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 10 Jun 2014 19:00:51 +0200 Subject: [PATCH] CppunitTest_sw_ooxmlexport: port testTextBoxGradientAngle to textboxes Change-Id: Id17c7d4cf9c9bcb81d0da486c9bce44abb04b6cd --- sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 8bf3a58b0e8f..4b5de65f3c5d 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -1791,8 +1791,8 @@ DECLARE_OOXMLEXPORT_TEST(testHyperlineIsEnd, "hyperlink.docx") DECLARE_OOXMLEXPORT_TEST(testTextBoxGradientAngle, "fdo65295.docx") { - uno::Reference xTextFramesSupplier(mxComponent, uno::UNO_QUERY); - uno::Reference xIndexAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY); + uno::Reference xDrawPageSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference xIndexAccess(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY); CPPUNIT_ASSERT_EQUAL(sal_Int32(8), xIndexAccess->getCount()); // Angle of frame#1 is 135 degrees, but 'aGradient.Angle' holds value in 1/10 of a degree