diff --git a/lotuswordpro/source/filter/lwpobjfactory.cxx b/lotuswordpro/source/filter/lwpobjfactory.cxx index d72535da872f..f73f8003f7d1 100644 --- a/lotuswordpro/source/filter/lwpobjfactory.cxx +++ b/lotuswordpro/source/filter/lwpobjfactory.cxx @@ -135,7 +135,7 @@ rtl::Reference LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObj { rtl::Reference newObj; m_nNumObjs++; - assert(type<300); + SAL_WARN_IF(type>=300, "lwp", "invalid type: " << type); switch(type) { case VO_DOCUMENT: @@ -666,7 +666,6 @@ rtl::Reference LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObj default: { //Unknown object type - assert(false); newObj = NULL; break; }