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-20 15:30:15 +0200
commitc6f03d6fc25a3cea22f2ce035d0948bcaa74daa9 (patch)
tree208ed7434a6156bb4d535b38fef685ecbcfef6f1
parent18e08580b660111e7e9b0bae18ac9034f57475ba (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
-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.