some bugs in class PdfOutlineItem ,

in PdfOutlines.cpp:


line 77:

m_pNext  = new PdfOutlineItem( pObj, NULL, this );

should be:


m_pNext  = new PdfOutlineItem( pObj, pParentOutline, this );







line 206:

function "Erase" i fixed as below:





void PdfOutlineItem::Erase()
 
{
 
    while( m_pFirst )
 
    {
 
        // erase will set a new first
 
        // if it has a next item
 
        m_pFirst->Erase();
 
    }
 


 
    if( m_pPrev ) 
 
    {
 
        m_pPrev->SetNext    ( m_pNext );
 
    }
 
        
 
    if ( m_pNext )
 
    {
 
        m_pNext->SetPrevious( m_pPrev );
 
    }
 


 
    if( m_pParentOutline && m_pParentOutline->First() == this)
 
        m_pParentOutline->SetFirst( m_pNext );
 


 
    if( m_pParentOutline && m_pParentOutline->Last() == this)
 
        m_pParentOutline->SetLast( m_pPrev );
 


 
    m_pNext = NULL;
 
    delete this;
 
}
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to