From 641004969ffd053bde90bdd6c4ea629baea8d18e Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 26 Jan 2019 17:13:28 +0300 Subject: tdf#116371: export rotation of SwGrfNode Change-Id: I42620da798a35dfada67d9a9fb23d554cc20b16f Reviewed-on: https://gerrit.libreoffice.org/66963 Tested-by: Jenkins Reviewed-by: Mike Kaganski Reviewed-on: https://gerrit.libreoffice.org/67670 Tested-by: Mike Kaganski --- sw/qa/extras/ooxmlexport/ooxmlexport11.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sw/qa/extras/ooxmlexport/ooxmlexport11.cxx') diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx index 4163921e073f..d5e98bebfde0 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx @@ -413,6 +413,16 @@ DECLARE_OOXMLEXPORT_TEST(testInputListExport, "tdf122186_input_list.odt") assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:r[4]/w:t", 0); } +DECLARE_OOXMLEXPORT_TEST(testTdf116371, "tdf116371.odt") +{ + // Make sure the rotation is exported correctly, and size not distorted + auto xShape(getShape(1)); + CPPUNIT_ASSERT_DOUBLES_EQUAL(4700.0, getProperty(xShape, "RotateAngle"), 10); + auto frameRect = getProperty(xShape, "FrameRect"); + CPPUNIT_ASSERT_EQUAL(sal_Int32(24070), frameRect.Height); + CPPUNIT_ASSERT_EQUAL(sal_Int32(24188), frameRect.Width); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3