diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/DocumentSettingsContext.cxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/xmloff/source/core/DocumentSettingsContext.cxx b/xmloff/source/core/DocumentSettingsContext.cxx index 95f9ade152f5..e4fe7da6fba0 100644 --- a/xmloff/source/core/DocumentSettingsContext.cxx +++ b/xmloff/source/core/DocumentSettingsContext.cxx @@ -451,10 +451,18 @@ void XMLDocumentSettingsContext::EndElement() } sal_Bool bLoadDocPrinter( sal_True ); - ::comphelper::ConfigurationHelper::readDirectKey( - ::comphelper::getProcessServiceFactory(), - C2U("org.openoffice.Office.Common/"), C2U("Save/Document"), C2U("LoadPrinter"), - ::comphelper::ConfigurationHelper::E_READONLY ) >>= bLoadDocPrinter; + + try + { + ::comphelper::ConfigurationHelper::readDirectKey( + ::comphelper::getProcessServiceFactory(), + C2U("org.openoffice.Office.Common/"), C2U("Save/Document"), C2U("LoadPrinter"), + ::comphelper::ConfigurationHelper::E_READONLY ) >>= bLoadDocPrinter; + } + catch( const uno::Exception& ) + { + } + uno::Sequence<beans::PropertyValue> aSeqConfigProps; if ( m_pData->aConfigProps >>= aSeqConfigProps ) { |