Use isComplex for calc too.

Change-Id: Ib209cca53079cb9d63a8955caf80945c7ea455d4
This commit is contained in:
Michael Meeks 2019-06-28 18:26:32 +01:00
parent bc9ea43af1
commit 7f43d5d385

View file

@ -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.