summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-04 10:57:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-04 11:26:59 +0000
commit3bcdba062358e36a319dc425194c4b5e35485ac5 (patch)
treeadbe7d61f6237964fef70ddd16e2f7a240c8afe1
parent3111d28aa89dbe5b15782cd288b2e2141bd16a95 (diff)
survive broken config
-rw-r--r--xmloff/source/core/DocumentSettingsContext.cxx16
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 )
{