sc/source/ui/unoobj/docuno.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 3c8bbb6025a2ecccc42264d97f76928ef9ab43f7 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Tue Jun 14 15:11:21 2016 +0200 sc: implement per-view resetSelection() Fixes the following crash: - start gtktiledviewer with a Calc document - enter edit mode - create a text selection (selection of multiple cells e.g.) - leave edit mode -> assert fails Change-Id: Ic8a65a692679afe1e293f7467f7a72cadcf9f083 Reviewed-on: https://gerrit.libreoffice.org/26266 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> Tested-by: Jenkins <c...@libreoffice.org> diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 912a4fd..7da7eee 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -31,6 +31,7 @@ #include <svx/unoshape.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> +#include <comphelper/lok.hxx> #include <officecfg/Office/Common.hxx> #include <officecfg/Office/Calc.hxx> #include <svl/numuno.hxx> @@ -866,7 +867,10 @@ void ScModelObj::resetSelection() pViewShell->Unmark(); // and hide the cell and text selection - pDocShell->GetDocument().GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_TEXT_SELECTION, ""); + if (comphelper::LibreOfficeKit::isViewCallback()) + pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION, ""); + else + pDocShell->GetDocument().GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_TEXT_SELECTION, ""); } void ScModelObj::setClipboard(const uno::Reference<datatransfer::clipboard::XClipboard>& xClipboard) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits