diff options
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/core/relationshandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/core/relationshandler.cxx b/oox/source/core/relationshandler.cxx index f94d5ebfa569..65c9d46ed999 100644 --- a/oox/source/core/relationshandler.cxx +++ b/oox/source/core/relationshandler.cxx @@ -73,11 +73,11 @@ Reference< XFastContextHandler > RelationsFragment::createFastChildContext( if( !aRelation.maId.isEmpty() && !aRelation.maType.isEmpty() && !aRelation.maTarget.isEmpty() ) { sal_Int32 nTargetMode = aAttribs.getToken( XML_TargetMode, XML_Internal ); - OSL_ENSURE( (nTargetMode == XML_Internal) || (nTargetMode == XML_External), + SAL_WARN_IF( (nTargetMode != XML_Internal) && (nTargetMode != XML_External), "oox", "RelationsFragment::createFastChildContext - unexpected target mode, assuming external" ); aRelation.mbExternal = nTargetMode != XML_Internal; - OSL_ENSURE( mxRelations->count( aRelation.maId ) == 0, + SAL_WARN_IF( mxRelations->count( aRelation.maId ) != 0, "oox", "RelationsFragment::createFastChildContext - relation identifier exists already" ); mxRelations->insert( ::std::map< OUString, Relation >::value_type( aRelation.maId, aRelation ) ); } |