diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-07-24 20:11:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-07-24 21:53:53 +0200 |
commit | 41f02927b6d8470c298c8a2f407c98420a5ebe24 (patch) | |
tree | cc16f40289a4215837449f822323ec2e77225b9e /sc | |
parent | 9a9d955f7bbcedb7921345a107f4aec5128c1c43 (diff) |
ofz#45551 Out-of-memory
Change-Id: Ic58fe7e279941b976412131fc8b3c81eba080296
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137395
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/excel.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/filter/excel/excel.cxx b/sc/source/filter/excel/excel.cxx index edc60721ace0..08d1730be436 100644 --- a/sc/source/filter/excel/excel.cxx +++ b/sc/source/filter/excel/excel.cxx @@ -22,8 +22,10 @@ #include <sfx2/sfxsids.hrc> #include <sot/storage.hxx> #include <sot/exchange.hxx> +#include <svl/intitem.hxx> #include <filter/msfilter/classids.hxx> #include <tools/globname.hxx> +#include <com/sun/star/document/UpdateDocMode.hpp> #include <com/sun/star/packages/XPackageEncryption.hpp> #include <com/sun/star/ucb/ContentCreationException.hpp> #include <com/sun/star/uno/XComponentContext.hpp> @@ -446,12 +448,14 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportXLS(SvStream& rStream) SfxMedium aMedium; css::uno::Reference<css::io::XInputStream> xStm(new utl::OInputStreamWrapper(rStream)); aMedium.GetItemSet()->Put(SfxUnoAnyItem(SID_INPUTSTREAM, css::uno::Any(xStm))); + aMedium.GetItemSet()->Put(SfxUInt16Item(SID_UPDATEDOCMODE, css::document::UpdateDocMode::NO_UPDATE)); ScDocShellRef xDocShell = new ScDocShell(SfxModelFlags::EMBEDDED_OBJECT | SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS | SfxModelFlags::DISABLE_DOCUMENT_RECOVERY); xDocShell->DoInitNew(); + xDocShell->SetInitialLinkUpdate(&aMedium); ScDocument& rDoc = xDocShell->GetDocument(); |