From c9a02e3d93f499958ab690630122f5300116463c Mon Sep 17 00:00:00 2001 From: Björn Milcke Date: Mon, 8 Dec 2003 14:46:28 +0000 Subject: +regression, DataCaption=>DataPointLabel --- chart2/source/model/template/ChartTypeManager.cxx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'chart2/source/model/template/ChartTypeManager.cxx') 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 { -- cgit v1.2.3