Catalog.cc (xpdf-4.03) | : | Catalog.cc (xpdf-4.04) | ||
---|---|---|---|---|
skipping to change at line 626 | skipping to change at line 626 | |||
pageObj.getTypeName()); | pageObj.getTypeName()); | |||
pageObj.free(); | pageObj.free(); | |||
pageRefObj.free(); | pageRefObj.free(); | |||
pages[pg-1] = new Page(doc, pg); | pages[pg-1] = new Page(doc, pg); | |||
return; | return; | |||
} | } | |||
// merge the PageAttrs | // merge the PageAttrs | |||
attrs = new PageAttrs(node->parent ? node->parent->attrs | attrs = new PageAttrs(node->parent ? node->parent->attrs | |||
: (PageAttrs *)NULL, | : (PageAttrs *)NULL, | |||
pageObj.getDict()); | pageObj.getDict(), xref); | |||
// if "Kids" exists, it's an internal node | // if "Kids" exists, it's an internal node | |||
if (pageObj.dictLookup("Kids", &kidsObj)->isArray()) { | if (pageObj.dictLookup("Kids", &kidsObj)->isArray()) { | |||
// save the PageAttrs | // save the PageAttrs | |||
node->attrs = attrs; | node->attrs = attrs; | |||
// read the kids | // read the kids | |||
node->kids = new GList(); | node->kids = new GList(); | |||
for (i = 0; i < kidsObj.arrayGetLength(); ++i) { | for (i = 0; i < kidsObj.arrayGetLength(); ++i) { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |