summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-05-20 15:18:30 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-05-20 15:30:14 +0200
commit18e08580b660111e7e9b0bae18ac9034f57475ba (patch)
tree230c76c0349382141e7c76ff2de299ee86b3a9a7 /editeng
parenta1202971e5b27ac4585cde73ed15f395c242cae3 (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
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx4
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