diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-18 11:48:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-18 11:48:38 +0000 |
commit | 742bcd2b2d23ae05bfcf356db69f79f33d20f53f (patch) | |
tree | de9e61e6e7deecda645144ed7c5c6fc102ef875b /lotuswordpro/source/filter/lwpdivinfo.cxx | |
parent | tdf#96366 disable treeview results until fix available (diff) | |
download | core-742bcd2b2d23ae05bfcf356db69f79f33d20f53f.tar.gz core-742bcd2b2d23ae05bfcf356db69f79f33d20f53f.zip |
crashtesting: these can happen with broken documents
Change-Id: I35f77345804b3ebfda9d427de79968b193d1419a
Diffstat (limited to 'lotuswordpro/source/filter/lwpdivinfo.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpdivinfo.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/lwpdivinfo.cxx b/lotuswordpro/source/filter/lwpdivinfo.cxx index 2f9a6cf60e41..efa32f69561a 100644 --- a/lotuswordpro/source/filter/lwpdivinfo.cxx +++ b/lotuswordpro/source/filter/lwpdivinfo.cxx @@ -108,15 +108,11 @@ void LwpDivInfo::Read() m_FillerPageTextID.ReadIndexed(m_pObjStrm); // read external file object stuff -#if !defined(NDEBUG) - sal_uInt16 type = -#endif - m_pObjStrm->QuickReaduInt16(); + sal_uInt16 type = m_pObjStrm->QuickReaduInt16(); //cpExternalFile = LNULL; - assert(type==0); + SAL_WARN_IF(type != 0, "lwp", "should be 0"); m_pObjStrm->SkipExtra(); - } void LwpDivInfo::SkipFront() |