diff options
author | Björn Milcke <bm@openoffice.org> | 2003-12-08 14:46:28 +0000 |
---|---|---|
committer | Björn Milcke <bm@openoffice.org> | 2003-12-08 14:46:28 +0000 |
commit | c9a02e3d93f499958ab690630122f5300116463c (patch) | |
tree | 264bce3781f7f5a18544cf8f8cf27ab5216bd4f2 /chart2/source/model/template/ChartTypeManager.cxx | |
parent | c420389d39feefab90c16b6fb63dae0d01bf9357 (diff) |
+regression, DataCaption=>DataPointLabel
Diffstat (limited to 'chart2/source/model/template/ChartTypeManager.cxx')
-rw-r--r-- | chart2/source/model/template/ChartTypeManager.cxx | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/chart2/source/model/template/ChartTypeManager.cxx b/chart2/source/model/template/ChartTypeManager.cxx index 80ef2fb6da12..aa6a0c6543df 100644 --- a/chart2/source/model/template/ChartTypeManager.cxx +++ b/chart2/source/model/template/ChartTypeManager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ChartTypeManager.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: bm $ $Date: 2003-11-25 09:01:34 $ + * last change: $Author: bm $ $Date: 2003-12-08 15:46:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -392,8 +392,22 @@ uno::Reference< uno::XInterface > SAL_CALL ChartTypeManager::createInstance( if( nId == TEMPLATE_NOT_FOUND ) { - xResult = m_xContext->getServiceManager()->createInstanceWithContext( - aServiceSpecifier, m_xContext ); + try + { + xResult = m_xContext->getServiceManager()->createInstanceWithContext( + aServiceSpecifier, m_xContext ); + } +// catch( registry::InvalidValueException & ex ) + catch( uno::Exception & ex ) + { + // couldn't create service via factory + + // As XMultiServiceFactory does not specify, what to do in case + // createInstance is called with an unknown service-name, this + // function will just return an empty XInterface. + ASSERT_EXCEPTION( ex ); + xResult.set( 0 ); + } } else { |