summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-24 09:21:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-25 09:40:36 +0200
commitbe683ad84960cad35299ed06b6b47691d90e2554 (patch)
tree872899209151be13a6b1e960ab57ec8df42c5c2d /sw
parent9117fb44bc7bd6b8764911c731c84a9e5dcc37f0 (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 'sw')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index f264c158df04..b8f81db2f58b 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3492,7 +3492,9 @@ void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css::
// 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();
// disable word auto-completion suggestions, the tooltips are not visible,
// and the editeng-like auto-completion is annoying