summaryrefslogtreecommitdiff
path: root/chart2/source/model/template/ChartTypeManager.cxx
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2003-12-08 14:46:28 +0000
committerBjörn Milcke <bm@openoffice.org>2003-12-08 14:46:28 +0000
commitc9a02e3d93f499958ab690630122f5300116463c (patch)
tree264bce3781f7f5a18544cf8f8cf27ab5216bd4f2 /chart2/source/model/template/ChartTypeManager.cxx
parentc420389d39feefab90c16b6fb63dae0d01bf9357 (diff)
+regression, DataCaption=>DataPointLabel
Diffstat (limited to 'chart2/source/model/template/ChartTypeManager.cxx')
-rw-r--r--chart2/source/model/template/ChartTypeManager.cxx22
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
{