summaryrefslogtreecommitdiff
path: root/sd/qa/unit
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-11-22 19:58:53 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-11-22 20:02:34 +0200
commit8e31d8a27baa76564f3b71e0d31750ae56873c61 (patch)
tree2a1cd7949dfef301a2231bea4c98fd52b990dbbf /sd/qa/unit
parentf70ae430a047f44ed16868aa8a802c5f65404cf5 (diff)
Probably a more robust way to fix the test
Change-Id: Ib62df74ee8a53dac13c0ca8a839096932cf84c20
Diffstat (limited to 'sd/qa/unit')
-rw-r--r--sd/qa/unit/tiledrendering/tiledrendering.cxx3
1 files changed, 1 insertions, 2 deletions
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<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);