summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2018-02-24 04:44:20 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2018-02-24 13:09:34 +0100
commit56629f9797fa1cf8b7c86b93ee2ea62673444c94 (patch)
treeeaa4018d45e0615e14ba43a33793ff32cf13d827 /editeng
parent89182507aaf336d16ba1e89305bc2ea3b1e6949f (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. Change-Id: I6e9337fc0cfb61656387ba44d901521c3dfa60dd 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>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 80566aaab1a0..dd21886c78e1 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1461,6 +1461,9 @@ void ImpEditView::DeleteSelected()
pEditEngine->pImpEditEngine->UndoActionEnd();
SetEditSelection( EditSelection( aPaM, aPaM ) );
+
+ DrawSelectionXOR();
+
pEditEngine->pImpEditEngine->FormatAndUpdate( GetEditViewPtr() );
ShowCursor( DoAutoScroll(), true );
}