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 | 3bcdba062358e36a319dc425194c4b5e35485ac5 (patch) | |
tree | adbe7d61f6237964fef70ddd16e2f7a240c8afe1 /xmloff | |
parent | 3111d28aa89dbe5b15782cd288b2e2141bd16a95 (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 4f917e236b..337879b674 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 ) { |