summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-07-10 08:31:39 -0400
committerAndras Timar <andras.timar@collabora.com>2019-07-15 12:20:46 +0200
commit51b607a89782d5305fd8ce9b99e636baa9ca3423 (patch)
tree8af72a996711367e4079f2ccdd2b4a7427e7b2c7 /sc/source/ui
parent0e23e35e626772091710eb8552f8ca63b2dd1fe7 (diff)
sw: fail loading when the fallback text detection fails
When we document in question fails to match any known type, we try to open as plain text (and convert to a Writer doc). However we should not display non-text when we have failed to detect ascii or unicode contents in the file. This happens with corrupted documents, for example, where we end up displaying non-printable binary data. Change-Id: Iccc158a4cb6051a8b17ba01987a30a9882a27fa9 Reviewed-on: https://gerrit.libreoffice.org/75512 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit d1f6f27e2a014aa55e2762f1209dc520fb183404) Reviewed-on: https://gerrit.libreoffice.org/75625 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sc/source/ui')
0 files changed, 0 insertions, 0 deletions