summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-05-20 15:26:27 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-05-26 09:35:02 +0200
commitb1e1bb2f3c5b32ec8898c006704c3ebacff78bf3 (patch)
treeadfb682af9971f5ee409c812d533efc4e67d1e18
parentd9ffe9b554b90cddbae2211d94342dc8887c9d57 (diff)
ImpEditView::SetCursorAtPoint tiled rendering: avoid partial selections
Same problem as in the previous commit, just for mouse move. Previously when selecting "abc" with the mouse only one or zero letter got selected as the mouse moved, now it's properly the whole afffected string. Change-Id: I025dbd71fc02a0c93a532ca188836ffb957d6b35 (cherry picked from commit c6f03d6fc25a3cea22f2ce035d0948bcaa74daa9)
-rw-r--r--editeng/source/editeng/impedit.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 676fc44015d0..d1f5d95aae3b 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1531,8 +1531,8 @@ bool ImpEditView::SetCursorAtPoint( const Point& rPointPixel )
EditPaM aPaM = pEditEngine->GetPaM(aDocPos);
bool bGotoCursor = DoAutoScroll();
- // aTmpNewSel: Diff between old and new, not the new selection
- EditSelection aTmpNewSel( GetEditSelection().Max(), aPaM );
+ // aTmpNewSel: Diff between old and new, not the new selection, unless tiled rendering
+ EditSelection aTmpNewSel( isTiledRendering() ? GetEditSelection().Min() : GetEditSelection().Max(), aPaM );
// #i27299#
// work on copy of current selection and set new selection, if it has changed.