summaryrefslogtreecommitdiffstats
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-05 11:54:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-05 11:55:36 +0100
commitaad27e89564752a2bee3da4558f4d276685ba50a (patch)
treecbd07426424f08b3387dbab27f9d7969bac0783e /lotuswordpro
parenttdf#91849 add Tigrigna (Ethiopia) [ti-ET] locale data (diff)
downloadcore-aad27e89564752a2bee3da4558f4d276685ba50a.tar.gz
core-aad27e89564752a2bee3da4558f4d276685ba50a.zip
these types come directly from the file itself
so while invalid they can appear here Change-Id: I36d43958bf578e677f216aea09400ab764ed82ae
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpobjfactory.cxx3
1 files changed, 1 insertions, 2 deletions
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<LwpObject> LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObj
{
rtl::Reference<LwpObject> 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<LwpObject> LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObj
default:
{
//Unknown object type
- assert(false);
newObj = NULL;
break;
}