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:
@@ -255,7 +255,15 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportXLS(SvStream& rStream)
|
|||||||
aDocOpt.SetLookUpColRowNames(false);
|
aDocOpt.SetLookUpColRowNames(false);
|
||||||
aDocument.SetDocOptions(aDocOpt);
|
aDocument.SetDocOptions(aDocOpt);
|
||||||
aDocument.MakeTable(0);
|
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: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
Reference in New Issue
Block a user