summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-01 10:18:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-08-01 10:32:14 +0100
commitd09b943fc4292d47a9d93f6e423cd0eafbd799ae (patch)
treed6b240954c948c5c11d718fd8762e126a18b8cbc
parent104aa89163c3ddc0c9ac5324d5c5708c32c06a94 (diff)
ofz: survive missing config
Change-Id: I011b6e3259f1567ddbacb22e19b06f7ae5aa63ed
-rw-r--r--sc/source/ui/docshell/tablink.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx
index 580c8983434d..5c5e3a1f4d32 100644
--- a/sc/source/ui/docshell/tablink.cxx
+++ b/sc/source/ui/docshell/tablink.cxx
@@ -30,6 +30,7 @@
#include <sfx2/linkmgr.hxx>
#include <tools/urlobj.hxx>
#include <unotools/transliterationwrapper.hxx>
+#include <unotools/configmgr.hxx>
#include "tablink.hxx"
@@ -454,7 +455,7 @@ bool ScDocumentLoader::GetFilterName( const OUString& rFileName,
std::shared_ptr<const SfxFilter> pSfxFilter;
auto pMedium = o3tl::make_unique<SfxMedium>( rFileName, StreamMode::STD_READ );
- if ( pMedium->GetError() == ERRCODE_NONE )
+ if (pMedium->GetError() == ERRCODE_NONE && !utl::ConfigManager::IsAvoidConfig())
{
if ( bWithInteraction )
pMedium->UseInteractionHandler(true); // #i73992# no longer called from GuessFilter