diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-29 09:48:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-29 16:16:04 +0200 |
commit | 153d9483c1e9ec3722447a2b43c43ec1b32193d6 (patch) | |
tree | 39cf74e56f3a1a52b21bfc95e04758d26396abb9 /sw | |
parent | b1dc1c740e37639bb309f4aa6a1c2567f99083fc (diff) |
replace and drop SvtPrintWarningOptions
Change-Id: I17fd4156eb940fbdc925d9761301096e5349135f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99674
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index ed42e0d978fb..637f13488921 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -20,7 +20,7 @@ #include <boost/property_tree/json_parser.hpp> #include <sal/config.h> - +#include <officecfg/Office/Common.hxx> #include <comphelper/string.hxx> #include <AnnotationWin.hxx> #include <o3tl/any.hxx> @@ -79,7 +79,6 @@ #include <unochart.hxx> #include <charatr.hxx> #include <svx/xmleohlp.hxx> -#include <unotools/printwarningoptions.hxx> #include <com/sun/star/lang/ServiceNotRegisteredException.hpp> #include <com/sun/star/lang/DisposedException.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> @@ -2588,7 +2587,7 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount( // #122919# Force field update before PDF export, but after layout init (tdf#121962) bool bStateChanged = false; // check configuration: shall update of printing information in DocInfo set the document to "modified"? - if ( pRenderDocShell->IsEnableSetModified() && !SvtPrintWarningOptions().IsModifyDocumentOnPrintingAllowed() ) + if (pRenderDocShell->IsEnableSetModified() && !officecfg::Office::Common::Print::PrintingModifiesDocument::get()) { pRenderDocShell->EnableSetModified( false ); bStateChanged = true; |