summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-04-10 16:15:27 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-13 09:07:04 +0200
commitc09c3559f011e89ae45c16e5cf0bb085e127f0ea (patch)
tree01236e4ce510120a0eeaacbba7bcbdcd9e10de92 /editeng
parent060dcbf6d118cef164c75a8cb603d6a4179abf53 (diff)
Fix failing SdTiledRenderingTest::testSetTextSelection().
Change-Id: Ieaeaef249ea15de7cebc1cdb60b4d6130a6b5616
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editview.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index 6d0c556f17a5..d407e4e26402 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -1323,14 +1323,17 @@ void EditView::SetCursorLogicPosition(const Point& rPosition, bool bPoint, bool
{
Point aDocPos(pImpEditView->GetDocPos(rPosition));
EditPaM aPaM = pImpEditView->pEditEngine->GetPaM(aDocPos);
+ EditSelection aSelection(pImpEditView->GetEditSelection());
// Explicitly create or delete the selection.
if (bClearMark)
+ {
pImpEditView->DeselectAll();
+ aSelection = pImpEditView->GetEditSelection();
+ }
else
pImpEditView->CreateAnchor();
- EditSelection aSelection(pImpEditView->GetEditSelection());
if (bPoint)
aSelection.Max() = aPaM;
else