diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-04 10:57:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-04 11:26:59 +0000 |
commit | 56408d346af79d12d9af0dd414fd311d3711814e (patch) | |
tree | 20136bae1b7a7d656f6f0d9408b7189f7edd1787 /xmloff | |
parent | 7008ce3a2b436b9533d09b1489f7312222e2442c (diff) |
survive broken config
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 ) { |