ofz#63646 avoid Timeout when document fails to load

Change-Id: I84db71486c42b74bd2bf7ff2c5469938802ee113
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158592
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2023-10-28 17:11:00 +01:00
parent 2a302e143d
commit 7269df7482

View file

@ -1847,12 +1847,11 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestPDFExportFODT(SvStream &rStream)
uno::Reference<document::XFilter> xFODTFilter(xInterface, uno::UNO_QUERY_THROW);
bool ret = xFODTFilter->filter(aArgs);
css::uno::Reference<css::frame::XController2> xController(xModel->createDefaultViewController(xTargetFrame), UNO_SET_THROW);
utl::ConnectFrameControllerModel(xTargetFrame, xController, xModel);
if (ret)
{
css::uno::Reference<css::frame::XController2> xController(xModel->createDefaultViewController(xTargetFrame), UNO_SET_THROW);
utl::ConnectFrameControllerModel(xTargetFrame, xController, xModel);
utl::TempFileNamed aTempFile;
aTempFile.EnableKillingFile();