mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Finishing of outline items
This commit is contained in:
@@ -53,11 +53,8 @@ public:
|
||||
private:
|
||||
static void parseImpl(Objects& objects, const PDFDocument* document, const PDFObject& root)
|
||||
{
|
||||
const PDFObject& dereferencedRoot = document->getObject(root);
|
||||
if (dereferencedRoot.isDictionary())
|
||||
if (const PDFDictionary* dictionary = document->getDictionaryFromObject(root))
|
||||
{
|
||||
const PDFDictionary* dictionary = dereferencedRoot.getDictionary();
|
||||
|
||||
// First, load the objects into the array
|
||||
const PDFObject& numberedItems = document->getObject(dictionary->get("Nums"));
|
||||
if (numberedItems.isArray())
|
||||
|
Reference in New Issue
Block a user