diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 08:58:04 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 08:58:04 +0000 |
commit | c653bcdef2f306ee8b75b9a07f9654831bbe45ba (patch) | |
tree | 96fc5236484e8ce16f8df8439561f05a073ab2c8 /basctl | |
parent | fce38551d956e6a22d9b6196c528cd45e465272f (diff) |
INTEGRATION: CWS ab34 (1.40.18); FILE MERGED
2007/07/24 14:00:04 ab 1.40.18.4: RESYNC: (1.42-1.43); FILE MERGED
2007/06/27 12:58:22 ab 1.40.18.3: RESYNC: (1.41-1.42); FILE MERGED
2007/04/24 10:11:51 ab 1.40.18.2: RESYNC: (1.40-1.41); FILE MERGED
2007/03/12 15:57:17 ab 1.40.18.1: #i74004# BasicIDEShell::SetCurLibForLocalization(): Catch NoSuchElement exception
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basidesh.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx index 1cbf9ec96d67..c4433537147a 100644 --- a/basctl/source/basicide/basidesh.cxx +++ b/basctl/source/basicide/basidesh.cxx @@ -4,9 +4,9 @@ * * $RCSfile: basidesh.cxx,v $ * - * $Revision: 1.43 $ + * $Revision: 1.44 $ * - * last change: $Author: hr $ $Date: 2007-06-26 16:52:02 $ + * last change: $Author: hr $ $Date: 2007-08-03 09:58:04 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1018,11 +1018,16 @@ void BasicIDEShell::SetCurLibForLocalization( const ScriptDocument& rDocument, S // Create LocalizationMgr delete m_pCurLocalizationMgr; Reference< resource::XStringResourceManager > xStringResourceManager; - if( aLibName.Len() ) + try { - Reference< container::XNameContainer > xDialogLib( rDocument.getLibrary( E_DIALOGS, aLibName, TRUE ) ); - xStringResourceManager = LocalizationMgr::getStringResourceFromDialogLibrary( xDialogLib ); + if( aLibName.Len() ) + { + Reference< container::XNameContainer > xDialogLib( rDocument.getLibrary( E_DIALOGS, aLibName, TRUE ) ); + xStringResourceManager = LocalizationMgr::getStringResourceFromDialogLibrary( xDialogLib ); + } } + catch ( container::NoSuchElementException& ) + {} m_pCurLocalizationMgr = new LocalizationMgr ( this, rDocument, aLibName, xStringResourceManager ); |