From c8a09eb373b78d9936fb00ac98b6876eb8740c4d Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Fri, 20 May 2016 11:50:10 -0400 Subject: [PATCH] bccu#1781: Impress/Comments - selection not updated on delete Change-Id: I694d76785fcf6ec9c158c34cbe07f4d1f2c7a41d Reviewed-on: https://gerrit.libreoffice.org/25219 Reviewed-by: Ashod Nakashian Tested-by: Ashod Nakashian (cherry picked from commit b95e4e8681c9cefb4e1d4177192164e041baf9d9) Reviewed-on: https://gerrit.libreoffice.org/25428 Tested-by: Jenkins --- desktop/inc/lib/init.hxx | 4 +++- editeng/source/editeng/editeng.cxx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx index 47b1d3153136..5d3297733edc 100644 --- a/desktop/inc/lib/init.hxx +++ b/desktop/inc/lib/init.hxx @@ -92,7 +92,9 @@ namespace desktop { // that no new events are fired during painting. if (type != LOK_CALLBACK_STATE_CHANGED && type != LOK_CALLBACK_INVALIDATE_TILES && - type != LOK_CALLBACK_CURSOR_VISIBLE) + type != LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR && + type != LOK_CALLBACK_CURSOR_VISIBLE && + type != LOK_CALLBACK_TEXT_SELECTION) { //SAL_WARN("lokevt", "Skipping while painting [" + std::to_string(type) + "]: [" + payload + "]."); return; diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index c03287858cdf..571b333ac9bc 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -1349,6 +1349,7 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pEditView, v } pEditView->pImpEditView->SetEditSelection( aCurSel ); + pEditView->pImpEditView->DrawSelection(); pImpEditEngine->UpdateSelections(); if ( ( !IsVertical() && ( nCode != KEY_UP ) && ( nCode != KEY_DOWN ) ) ||