diff options
author | Christian Lippka <cl@openoffice.org> | 2002-03-21 07:39:31 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2002-03-21 07:39:31 +0000 |
commit | 89822b458d29fcce2e36dd5183a8a3e6a053cc56 (patch) | |
tree | 5190106ef10e1f4d8d2582e2117394e3ff9dbed7 /xmloff/source/draw/XMLImageMapContext.cxx | |
parent | a5f7411b28454c74f092d3774680563e07767890 (diff) |
#96130# catch exception in c'tor and set error
Diffstat (limited to 'xmloff/source/draw/XMLImageMapContext.cxx')
-rw-r--r-- | xmloff/source/draw/XMLImageMapContext.cxx | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/xmloff/source/draw/XMLImageMapContext.cxx b/xmloff/source/draw/XMLImageMapContext.cxx index c27dae7b7203..c5207b73c72c 100644 --- a/xmloff/source/draw/XMLImageMapContext.cxx +++ b/xmloff/source/draw/XMLImageMapContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLImageMapContext.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: dvo $ $Date: 2001-06-29 21:07:13 $ + * last change: $Author: cl $ $Date: 2002-03-21 08:39:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -127,6 +127,10 @@ #include "xexptran.hxx" #endif +#ifndef _XMLOFF_XMLERROR_HXX +#include "xmlerror.hxx" +#endif + #ifndef _XMLOFF_XMLEVENTSIMPORTCONTEXT_HXX #include "XMLEventsImportContext.hxx" #endif @@ -745,8 +749,15 @@ XMLImageMapContext::XMLImageMapContext( xPropertySet(rPropertySet) { - Any aAny = xPropertySet->getPropertyValue(sImageMap); - aAny >>= xImageMap; + try + { + xPropertySet->getPropertyValue(sImageMap) >>= xImageMap; + } + catch( com::sun::star::uno::Exception e ) + { + uno::Sequence<OUString> aSeq(0); + rImport.SetError( XMLERROR_FLAG_WARNING | XMLERROR_API, aSeq, e.Message, NULL ); + } } XMLImageMapContext::~XMLImageMapContext() |