ofz#4041 Abrt

Change-Id: I8d9466bd4594dec819704141b03c280f52d824ef
Reviewed-on: https://gerrit.libreoffice.org/44267
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2017-11-03 14:27:19 +00:00
parent 52f2e70c9e
commit eb6ec4b606

View File

@ -255,7 +255,15 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportXLS(SvStream& rStream)
aDocOpt.SetLookUpColRowNames(false);
aDocument.SetDocOptions(aDocOpt);
aDocument.MakeTable(0);
return ScFormatFilter::Get().ScImportExcel(aMedium, &aDocument, EIF_AUTO) == ERRCODE_NONE;
bool bRet(false);
try
{
bRet = ScFormatFilter::Get().ScImportExcel(aMedium, &aDocument, EIF_AUTO) == ERRCODE_NONE;
}
catch (const css::ucb::ContentCreationException &)
{
}
return bRet;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */