summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-15 11:14:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-15 12:17:18 +0200
commitb6be50c99c66d517d39dd2cfcb90542cfc13c8ef (patch)
tree9da8a8d73284451b6dcf32cd7c30512eed25c1ee /xmloff
parente45f61a5906cb84cdd895ef00648d5b7a6468ac5 (diff)
avoid config when unavailable
Change-Id: I4effcfd82b977c8580fa7287ca4c30dda1af3250 Reviewed-on: https://gerrit.libreoffice.org/42319 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/DocumentSettingsContext.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/core/DocumentSettingsContext.cxx b/xmloff/source/core/DocumentSettingsContext.cxx
index 070ecc1581f2..6d2627f77e6d 100644
--- a/xmloff/source/core/DocumentSettingsContext.cxx
+++ b/xmloff/source/core/DocumentSettingsContext.cxx
@@ -44,6 +44,7 @@
#include <com/sun/star/document/NamedPropertyValues.hpp>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
+#include <unotools/configmgr.hxx>
#include <xmlenums.hxx>
using namespace com::sun::star;
@@ -380,7 +381,7 @@ void XMLDocumentSettingsContext::EndElement()
uno::Sequence<beans::PropertyValue> aSeqConfigProps;
if ( m_pData->aConfigProps >>= aSeqConfigProps )
{
- if (!officecfg::Office::Common::Save::Document::LoadPrinter::get())
+ if (!utl::ConfigManager::IsAvoidConfig() && !officecfg::Office::Common::Save::Document::LoadPrinter::get())
{
sal_Int32 i = aSeqConfigProps.getLength() - 1;
int nFound = 0;