From fe90ba29ad7345037e3707916b2696010213bda6 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Tue, 16 Feb 2016 11:40:23 +0530 Subject: sc lok: Notify LibreOfficeKit of empty selection Change-Id: Ib77f2e008473a18460e7783b20ef3237ff885d57 Reviewed-on: https://gerrit.libreoffice.org/22387 Tested-by: Jenkins Reviewed-by: David Tardon --- sc/source/ui/view/gridwin.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sc') diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 935d730eaeea..14f46e718b29 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -6229,6 +6229,11 @@ void ScGridWindow::UpdateSelectionOverlay() updateLibreOfficeKitSelection(pViewData, pDoc->GetDrawLayer(), aPixelRects); } } + else + { + ScDocument* pDoc = pViewData->GetDocument(); + pDoc->GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_TEXT_SELECTION, "EMPTY"); + } if ( aOldMode != aDrawMode ) SetMapMode( aOldMode ); -- cgit