From 8e31d8a27baa76564f3b71e0d31750ae56873c61 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 22 Nov 2016 19:58:53 +0200 Subject: Probably a more robust way to fix the test Change-Id: Ib62df74ee8a53dac13c0ca8a839096932cf84c20 --- sd/qa/unit/tiledrendering/tiledrendering.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sd/qa/unit') diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx b/sd/qa/unit/tiledrendering/tiledrendering.cxx index c07f00e8e7f8..4122adce3289 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(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); -- cgit