diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-02-24 04:44:20 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-25 21:25:48 +0200 |
commit | b7c7893e02b78947e34c7dd1015be6cad0f8d4cb (patch) | |
tree | 41738c263575a9fcac9794029ac8d21fa9be9bac /editeng | |
parent | 718f05f5810eea75599f532bbc659eada8e52085 (diff) |
sd lok: Delete selection highlight after cutting text.
Call drawing also after the new selection is set, similar to
other cases where DrawSelectionXOR() is called before and after
selection change.
In desktop LO drawing is always called again and again by timeout,
so there the selection is updated anyway, while in LO online painting
does not emit a notification.
Reviewed-on: https://gerrit.libreoffice.org/50268
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 56629f9797fa1cf8b7c86b93ee2ea62673444c94)
Change-Id: I6e9337fc0cfb61656387ba44d901521c3dfa60dd
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 6a89f6f360f0..884f6e99327b 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1469,6 +1469,9 @@ void ImpEditView::DeleteSelected() pEditEngine->pImpEditEngine->UndoActionEnd(); SetEditSelection( EditSelection( aPaM, aPaM ) ); + + DrawSelectionXOR(); + pEditEngine->pImpEditEngine->FormatAndUpdate( GetEditViewPtr() ); ShowCursor( DoAutoScroll(), true ); } |