[Libreoffice-commits] core.git: sd/qa
Khaled Hosny
khaledhosny at eglug.org
Tue Nov 22 18:03:39 UTC 2016
sd/qa/unit/tiledrendering/tiledrendering.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 8e31d8a27baa76564f3b71e0d31750ae56873c61
Author: Khaled Hosny <khaledhosny at eglug.org>
Date: Tue Nov 22 19:58:53 2016 +0200
Probably a more robust way to fix the test
Change-Id: Ib62df74ee8a53dac13c0ca8a839096932cf84c20
diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx b/sd/qa/unit/tiledrendering/tiledrendering.cxx
index c07f00e..4122adc 100644
--- a/sd/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx
@@ -351,9 +351,8 @@ void SdTiledRenderingTest::testPostMouseEvent()
CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(1), rEditView.GetSelection().nStartPos);
vcl::Cursor* pCursor = rEditView.GetCursor();
- Point aPosition = pCursor->GetPos();
+ Point aPosition(pCursor->GetPos().getX(), pCursor->GetPos().getY() + pCursor->GetSize().Height() / 2);
aPosition.setX(aPosition.getX() - 1000);
- aPosition.setY(aPosition.getY() + 1000);
pXImpressDocument->postMouseEvent(LOK_MOUSEEVENT_MOUSEBUTTONDOWN,
convertMm100ToTwip(aPosition.getX()), convertMm100ToTwip(aPosition.getY()),
1, MOUSE_LEFT, 0);
More information about the Libreoffice-commits
mailing list