diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-24 09:21:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-25 09:40:36 +0200 |
commit | be683ad84960cad35299ed06b6b47691d90e2554 (patch) | |
tree | 872899209151be13a6b1e960ab57ec8df42c5c2d /sc/source/ui/unoobj | |
parent | 9117fb44bc7bd6b8764911c731c84a9e5dcc37f0 (diff) |
use officecfg to retrieve WarnAlienFormat
Change-Id: Id7ca2ffa237cb8fda58af60ee5d296f492c5a47e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119462
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 0836e0e7ed7f..b98ef8df38c5 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -1200,7 +1200,9 @@ void ScModelObj::initializeForTiledRendering(const css::uno::Sequence<css::beans // be saved..." dialog appears, it is auto-cancelled with tiled rendering, // causing 'Save' being disabled; so let's always save to the original // format - SvtSaveOptions().SetWarnAlienFormat(false); + auto xChanges = comphelper::ConfigurationChanges::create(); + officecfg::Office::Common::Save::Document::WarnAlienFormat::set(false, xChanges); + xChanges->commit(); } uno::Any SAL_CALL ScModelObj::queryInterface( const uno::Type& rType ) |