Use isComplex for calc too.
Change-Id: Ib209cca53079cb9d63a8955caf80945c7ea455d4
This commit is contained in:
parent
bc9ea43af1
commit
7f43d5d385
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue