summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/layerimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/layerimp.cxx')
-rw-r--r--xmloff/source/draw/layerimp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/draw/layerimp.cxx b/xmloff/source/draw/layerimp.cxx
index e7079456e540..cc29145e65bd 100644
--- a/xmloff/source/draw/layerimp.cxx
+++ b/xmloff/source/draw/layerimp.cxx
@@ -108,7 +108,7 @@ SvXMLImportContext * SdXMLLayerContext::CreateChildContext( sal_uInt16 nPrefix,
void SdXMLLayerContext::EndElement()
{
- DBG_ASSERT( !msName.isEmpty(), "xmloff::SdXMLLayerContext::EndElement(), draw:layer element without draw:name!" );
+ SAL_WARN_IF( msName.isEmpty(), "xmloff", "xmloff::SdXMLLayerContext::EndElement(), draw:layer element without draw:name!" );
if( !msName.isEmpty() ) try
{
Reference< XPropertySet > xLayer;
@@ -116,14 +116,14 @@ void SdXMLLayerContext::EndElement()
if( mxLayerManager->hasByName( msName ) )
{
mxLayerManager->getByName( msName ) >>= xLayer;
- DBG_ASSERT( xLayer.is(), "xmloff::SdXMLLayerContext::EndElement(), failed to get existing XLayer!" );
+ SAL_WARN_IF( !xLayer.is(), "xmloff", "xmloff::SdXMLLayerContext::EndElement(), failed to get existing XLayer!" );
}
else
{
Reference< XLayerManager > xLayerManager( mxLayerManager, UNO_QUERY );
if( xLayerManager.is() )
xLayer.set( xLayerManager->insertNewByIndex( xLayerManager->getCount() ), UNO_QUERY );
- DBG_ASSERT( xLayer.is(), "xmloff::SdXMLLayerContext::EndElement(), failed to create new XLayer!" );
+ SAL_WARN_IF( !xLayer.is(), "xmloff", "xmloff::SdXMLLayerContext::EndElement(), failed to create new XLayer!" );
if( xLayer.is() )
xLayer->setPropertyValue("Name", Any( msName ) );
@@ -147,7 +147,7 @@ SdXMLLayerSetContext::SdXMLLayerSetContext( SvXMLImport& rImport, sal_uInt16 nPr
: SvXMLImportContext(rImport, nPrfx, rLocalName)
{
Reference< XLayerSupplier > xLayerSupplier( rImport.GetModel(), UNO_QUERY );
- DBG_ASSERT( xLayerSupplier.is(), "xmloff::SdXMLLayerSetContext::SdXMLLayerSetContext(), XModel is not supporting XLayerSupplier!" );
+ SAL_WARN_IF( !xLayerSupplier.is(), "xmloff", "xmloff::SdXMLLayerSetContext::SdXMLLayerSetContext(), XModel is not supporting XLayerSupplier!" );
if( xLayerSupplier.is() )
mxLayerManager = xLayerSupplier->getLayerManager();
}