diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-02-24 14:22:54 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-24 16:46:47 +0000 |
commit | 1543f1ec6deba898f71b04d242af8bed74dcd8d6 (patch) | |
tree | 9fa2f45a8f1eb040358d5755f1feaa6f97255827 /basic/source/uno | |
parent | 1dc601f1b62485e50fe43a8037aa5eb59c60cfe9 (diff) |
basic: tolerate empty / missing dialog.xlc and script.xlc files
Diffstat (limited to 'basic/source/uno')
-rw-r--r-- | basic/source/uno/namecont.cxx | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index a76ff93faf39..fbc52eaf176e 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -768,13 +768,8 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL, } catch(const Exception& ) { + // Silently tolerate empty or missing files xInput.clear(); - if( nPass == 0 ) - { - SfxErrorContext aEc( ERRCTX_SFX_LOADBASIC, aFileName ); - sal_uIntPtr nErrorCode = ERRCODE_IO_GENERAL; - ErrorHandler::HandleError( nErrorCode ); - } } // Old variant? @@ -793,9 +788,6 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL, catch(const Exception& ) { xInput.clear(); - SfxErrorContext aEc( ERRCTX_SFX_LOADBASIC, aFileName ); - sal_uIntPtr nErrorCode = ERRCODE_IO_GENERAL; - ErrorHandler::HandleError( nErrorCode ); } } @@ -957,11 +949,6 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL, delete pLibArray; } - // Only in the first pass it's an error when no index file is found - else if( nPass == 0 ) - { - return; - } } // #110009: END Scope to force the StorageRefs to be destructed |