diff options
author | Grzegorz Araminowicz <g.araminowicz@gmail.com> | 2017-05-30 11:45:47 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-05-31 15:30:28 +0200 |
commit | 087537dc45bbab3db41fe6d92974cdfde59904cb (patch) | |
tree | d359f2ffc2f850ad0a511739ed9ff984517360a2 /sw | |
parent | 490e9dbade4f9d69cab4b1ec435944c9b4d2f6c2 (diff) |
tdf#76446 GSoC: incorrect rotation of VML shapes
* support poorly documented 'fd' suffix in rotation attribute
* allow non-integer rotation
Change-Id: I3d72f2a708e6585597db09366c00c50038abc9c1
Reviewed-on: https://gerrit.libreoffice.org/38207
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sw')
-rwxr-xr-x | sw/qa/extras/ooxmlimport/data/tdf76446.docx | bin | 0 -> 10135 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/tdf76446.docx b/sw/qa/extras/ooxmlimport/data/tdf76446.docx Binary files differnew file mode 100755 index 000000000000..7ba6db35f146 --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/tdf76446.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index dee3ad3d3596..ebebedda914b 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -1280,6 +1280,13 @@ DECLARE_OOXMLIMPORT_TEST(testTdf100072, "tdf100072.docx") CPPUNIT_ASSERT_MESSAGE("Shape line width does not match", abs(nFirstEnd - nSecondEnd) < 10); } +DECLARE_OOXMLIMPORT_TEST(testTdf76446, "tdf76446.docx") +{ + uno::Reference<drawing::XShape> xShape = getShape(1); + sal_Int64 nRot = getProperty<sal_Int64>(xShape, "RotateAngle"); + CPPUNIT_ASSERT_EQUAL(sal_Int64(3128), nRot); +} + // tests should only be added to ooxmlIMPORT *if* they fail round-tripping in ooxmlEXPORT |