From 7f43d5d38507988845a96a1d5c8301321b4d3c87 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 28 Jun 2019 18:26:32 +0100 Subject: [PATCH] Use isComplex for calc too. Change-Id: Ib209cca53079cb9d63a8955caf80945c7ea455d4 --- kit/ChildSession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp index bb135f3a2..56700852e 100644 --- a/kit/ChildSession.cpp +++ b/kit/ChildSession.cpp @@ -917,7 +917,8 @@ bool ChildSession::getTextSelection(const char* /*buffer*/, int /*length*/, cons return false; } - if (getLOKitDocument()->getDocumentType() != LOK_DOCTYPE_TEXT) + if (getLOKitDocument()->getDocumentType() != LOK_DOCTYPE_TEXT && + getLOKitDocument()->getDocumentType() != LOK_DOCTYPE_SPREADSHEET) { const std::string selection = getTextSelectionInternal(mimeType); if (selection.size() >= 1024 * 1024) // Don't return huge data.