Commit (BOTH): fix bug 8302

From: Hubert Figuiere <hfiguiere_at_teaser.fr>
Date: Wed Mar 30 2005 - 23:58:26 CEST

Don't crash on empty RTF file. fix bug 8302

CVS: Modified Files:
CVS: Tag: ABI-2-2-0-STABLE
CVS: src/text/ptbl/xp/pd_Document.cpp
CVS: src/text/ptbl/xp/pt_PieceTable.cpp
CVS: src/wp/impexp/xp/ie_imp_RTF.cpp

CVS: Modified Files:
CVS: src/text/ptbl/xp/pd_Document.cpp
CVS: src/text/ptbl/xp/pt_PieceTable.cpp
CVS: src/wp/impexp/xp/ie_imp_RTF.cpp

The changes in ie_imp_RTF.cpp is enough, but I added more robustness to
our code because if code like this

bool Class::isFoobar(Frag *pf)
{
        if (pf->isFoobar())
        {
                return true;
        }
        return false;
}

If changed the if() to be

if (pf && pf->isFoobar())

Otherwise it crashes.

Hub
Received on Wed Mar 30 23:51:34 2005

This archive was generated by hypermail 2.1.8 : Wed Mar 30 2005 - 23:51:37 CEST