diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-06-12 11:39:15 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-17 06:39:30 +0000 |
commit | e6c004dd9f24c32f5e7468182a5e8d42293ec7b6 (patch) | |
tree | 7128862b7cfe1770d07ef2b3613a52ea26b410c6 /xmloff/source/draw/ximpshap.cxx | |
parent | 9c79945ca62b18213728cdd23d9f390304aee1de (diff) |
convert DBG_ASSERT in xmloff
Change-Id: I2f4bbbef451026fc34638e17fa29b6db2c14d850
Reviewed-on: https://gerrit.libreoffice.org/26191
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/draw/ximpshap.cxx')
-rw-r--r-- | xmloff/source/draw/ximpshap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index cde2c15710e4..91750f622d16 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -1785,7 +1785,7 @@ void SdXMLControlShapeContext::StartElement(const uno::Reference< xml::sax::XAtt AddShape("com.sun.star.drawing.ControlShape"); if( mxShape.is() ) { - DBG_ASSERT( !maFormId.isEmpty(), "draw:control without a form:id attribute!" ); + SAL_WARN_IF( !!maFormId.isEmpty(), "xmloff", "draw:control without a form:id attribute!" ); if( !maFormId.isEmpty() ) { if( GetImport().IsFormsSupported() ) @@ -2825,7 +2825,7 @@ SvXMLImportContext* SdXMLObjectShapeContext::CreateChildContext( uno::Reference< lang::XComponent > xComp; xPropSet->getPropertyValue("Model") >>= xComp; - DBG_ASSERT( xComp.is(), "no xModel for own OLE format" ); + SAL_WARN_IF( !xComp.is(), "xmloff", "no xModel for own OLE format" ); pEContext->SetComponent( xComp ); } } |