summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2018-02-26 05:37:44 +0100
committerJan Holesovsky <kendy@collabora.com>2018-02-26 12:29:43 +0100
commitec2b7cc3651e727d2d932edf2dac8c1d881279ac (patch)
tree5a2ea55377bb5d50a9eec7f2c4c697b41723f9a6 /editeng
parent743aee0ad16449ba0ecf506e0a650b45b89628bc (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) Remove accidently committed debug lines (cherry picked from commit c64f2d34c0e62ec288b2e1453bf91f9f650db845) Change-Id: Id083a3bb38ba89e00239e71387377691afd4f31c Reviewed-on: https://gerrit.libreoffice.org/50335 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@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 eec47351b8e9..644317c4509a 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1424,6 +1424,9 @@ void ImpEditView::DeleteSelected()
pEditEngine->pImpEditEngine->UndoActionEnd( EDITUNDO_DELETE );
SetEditSelection( EditSelection( aPaM, aPaM ) );
+
+ DrawSelection();
+
pEditEngine->pImpEditEngine->FormatAndUpdate( GetEditViewPtr() );
ShowCursor( DoAutoScroll(), true );
}