[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - desktop/inc editeng/source

Ashod Nakashian ashod.nakashian at collabora.co.uk
Fri May 20 17:48:30 UTC 2016


 desktop/inc/lib/init.hxx           |    4 +++-
 editeng/source/editeng/editeng.cxx |    1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit b95e4e8681c9cefb4e1d4177192164e041baf9d9
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Fri May 20 11:50:10 2016 -0400

    bccu#1781: Impress/Comments - selection not updated on delete
    
    Change-Id: I694d76785fcf6ec9c158c34cbe07f4d1f2c7a41d
    Reviewed-on: https://gerrit.libreoffice.org/25219
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx
index f49a829..ca942c6 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 4629ba5..8d7ae185 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -1356,6 +1356,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 ) ) ||


More information about the Libreoffice-commits mailing list