Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfVecObjects::SetObjectCount ( const PdfReference rRef ) [inline, private]

Set the object count so that the object described this reference is contained in the object count.

rRefreference of newly added object

Definition at line 539 of file PdfVecObjects.h.

References PoDoFo::PdfReference::ObjectNumber().

Referenced by AddFreeObject(), and push_back().

    if( rRef.ObjectNumber() >= m_nObjectCount )
    // Peter Petrov 18 September 2008
        // This was a bug.

        // In fact "m_bObjectCount" is used for the next free object number.
        // We need to use the greatest object number + 1 for the next free object number.
        // Otherwise, object number overlap would have occurred.
        m_nObjectCount = rRef.ObjectNumber() + 1;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index