diff options
author | Regényi Balázs <regenyi.balazs@nisz.hu> | 2021-01-16 13:48:44 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-06-29 22:48:44 +0200 |
commit | 66cc4828d438655d9a1f2affbc594c4096d1acaf (patch) | |
tree | cdae7248dee9081c114a423afb32c7db24e072e7 /svx/qa | |
parent | 001acaa0534d586c12da5d9ba7adfcf01a11fcf8 (diff) |
tdf#139549 DOCX import: document got modified at import time
Regression of bda05ba17362222b74727872579b65b3fa14e3d8
"tdf#41466 DOCX import: fix VML v:shape/v:textbox".
Co-authored-by: Tünde Tóth
Change-Id: I8762aa8a710c3a37290e1db854b8cc86db6757b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109436
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
(cherry picked from commit 2ffdd37067926ddb841c6055205f267b96706945)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117973
Tested-by: Jenkins
Diffstat (limited to 'svx/qa')
-rw-r--r-- | svx/qa/unit/customshapes.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/svx/qa/unit/customshapes.cxx b/svx/qa/unit/customshapes.cxx index 830c0074c757..b7b0788c4bba 100644 --- a/svx/qa/unit/customshapes.cxx +++ b/svx/qa/unit/customshapes.cxx @@ -610,9 +610,9 @@ CPPUNIT_TEST_FIXTURE(CustomshapesTest, testTdf127785_Mirror) const sal_Int32 nWidthV = aBoundRectV.Width; const sal_Int32 nLeftV = aBoundRectV.X; const sal_Int32 nTopV = aBoundRectV.Y; - if (abs(nHeightV - 4149) > 5 || abs(nWidthV - 3819) > 5) + if (abs(nHeightV - 8000) > 10 || abs(nWidthV - 8000) > 10) sErrors += "Flip vertical wrong size."; - if (abs(nLeftV - 3155) > 5 || abs(nTopV - 3736) > 5) + if (abs(nLeftV - 1000) > 10 || abs(nTopV - 2000) > 10) sErrors += " Flip vertical wrong position."; uno::Reference<drawing::XShape> xShapeH(getShape(1)); @@ -624,9 +624,9 @@ CPPUNIT_TEST_FIXTURE(CustomshapesTest, testTdf127785_Mirror) const sal_Int32 nWidthH = aBoundRectH.Width; const sal_Int32 nLeftH = aBoundRectH.X; const sal_Int32 nTopH = aBoundRectH.Y; - if (abs(nHeightH - 4149) > 5 || abs(nWidthH - 3819) > 5) + if (abs(nHeightH - 8000) > 10 || abs(nWidthH - 8000) > 10) sErrors += " Flip horizontal wrong size."; - if (abs(nLeftH - 15026) > 5 || abs(nTopH - 4115) > 5) + if (abs(nLeftH - 13000) > 10 || abs(nTopH - 2000) > 10) sErrors += " Flip horizontal wrong position."; CPPUNIT_ASSERT_EQUAL(OUString(), sErrors); @@ -689,13 +689,13 @@ CPPUNIT_TEST_FIXTURE(CustomshapesTest, testTdf127785_Asymmetric) const sal_Int32 nTop = aBoundRect.Y; const sal_Int32 nRight = aBoundRect.X + aBoundRect.Width - 1; const sal_Int32 nBottom = aBoundRect.Y + aBoundRect.Height - 1; - if (abs(nLeft - 10034) > 5) + if (abs(nLeft - 9000) > 10) sErrors += "wrong left"; - if (abs(nRight - 12973) > 5) + if (abs(nRight - 19000) > 10) sErrors += " wrong right"; - if (abs(nTop - 7892) > 5) + if (abs(nTop - 3000) > 10) sErrors += " wrong top"; - if (abs(nBottom - 14884) > 5) + if (abs(nBottom - 18000) > 10) sErrors += " wrong bottom"; CPPUNIT_ASSERT_EQUAL(OUString(), sErrors); @@ -722,13 +722,13 @@ CPPUNIT_TEST_FIXTURE(CustomshapesTest, testTdf127785_TextRotateAngle) const sal_Int32 nTop = aBoundRect.Y; const sal_Int32 nRight = aBoundRect.X + aBoundRect.Width - 1; const sal_Int32 nBottom = aBoundRect.Y + aBoundRect.Height - 1; - if (abs(nLeft - 5054) > 5) + if (abs(nLeft - 2000) > 10) sErrors += "wrong left"; - if (abs(nRight - 6374) > 5) + if (abs(nRight - 14000) > 10) sErrors += " wrong right"; - if (abs(nTop - 4516) > 5) + if (abs(nTop - 3000) > 10) sErrors += " wrong top"; - if (abs(nBottom - 8930) > 5) + if (abs(nBottom - 9000) > 10) sErrors += " wrong bottom"; CPPUNIT_ASSERT_EQUAL(OUString(), sErrors); |