~ubuntu-branches/ubuntu/trusty/libwpd/trusty

« back to all changes in this revision

Viewing changes to src/lib/WP5HeaderFooterGroup.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2006-07-15 11:58:12 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060715115812-v18efmdayby4clau
Tags: 0.8.6-1
* New upstream release
* swap maintainer/uploader

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
void WP5HeaderFooterGroup::_readContents(WPXInputStream *input)
40
40
{
41
41
        int tmpSubDocumentLength = getSize() - 26;
 
42
        WPD_DEBUG_MSG(("WordPerfect: reading HeaderFooter group. SubDocument size: %i\n", tmpSubDocumentLength));
42
43
        input->seek(7, WPX_SEEK_CUR);
43
44
        m_occurenceBits = readU8(input);
44
45
        if (m_occurenceBits)
45
46
        {
46
47
                input->seek(10, WPX_SEEK_CUR);
47
 
                m_subDocument = new WP5SubDocument(input, tmpSubDocumentLength);
 
48
                if (tmpSubDocumentLength)
 
49
                        m_subDocument = new WP5SubDocument(input, tmpSubDocumentLength);
48
50
        }
49
51
}
50
52