diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-20 15:18:30 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-26 09:35:01 +0200 |
commit | d9ffe9b554b90cddbae2211d94342dc8887c9d57 (patch) | |
tree | f37d0bd35b09059659833d338ec5a5b8a1804798 /editeng | |
parent | 9a889e3505dc867de4c8e05a9c8e338c8c31945d (diff) |
ImpEditEngine::MoveCursor tiled rendering: avoid partial selections
Tiled rendering assumes that the whole list of selection rectangles is
sent, i.e. the information is not incremental.
With this, if the text is "abc" and you are before "a" with the cursor,
then pressing shift-rightarrow two times will result in "ab" being
selected, not just "b".
Change-Id: I70c043575d3c68d78342af0a6b78659d83b4f5f4
(cherry picked from commit 18e08580b660111e7e9b0bae18ac9034f57475ba)
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 87a1f947af28..79058932479d 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -909,8 +909,8 @@ EditSelection ImpEditEngine::MoveCursor( const KeyEvent& rKeyEvent, EditView* pE pEditView->pImpEditView->GetEditSelection().Max() = aPaM; if ( bKeyModifySelection ) { - // Then the selection is expanded ... - EditSelection aTmpNewSel( aOldEnd, aPaM ); + // Then the selection is expanded ... or the whole selection is painted in case of tiled rendering. + EditSelection aTmpNewSel( pEditView->isTiledRendering() ? pEditView->pImpEditView->GetEditSelection().Min() : aOldEnd, aPaM ); pEditView->pImpEditView->DrawSelection( aTmpNewSel ); } else |