these types come directly from the file itself

so while invalid they can appear here

Change-Id: I36d43958bf578e677f216aea09400ab764ed82ae
This commit is contained in:
Caolán McNamara
2015-06-05 11:54:28 +01:00
parent 286fa4cec2
commit aad27e8956

View File

@@ -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;
}