Commit bde5a446ab87adc01d2d46e79c30f49c138744de
Committed by
GitHub
Merge pull request #1307 from m-holger/pages
Fix QPDF::getAllPagesInternal warning
Showing
2 changed files
with
2 additions
and
2 deletions
libqpdf/QPDF_pages.cc
| @@ -94,7 +94,7 @@ QPDF::getAllPagesInternal( | @@ -94,7 +94,7 @@ QPDF::getAllPagesInternal( | ||
| 94 | throw QPDFExc( | 94 | throw QPDFExc( |
| 95 | qpdf_e_pages, | 95 | qpdf_e_pages, |
| 96 | m->file->getName(), | 96 | m->file->getName(), |
| 97 | - m->last_object_description, | 97 | + "object " + cur_node.getObjGen().unparse(' '), |
| 98 | 0, | 98 | 0, |
| 99 | "Loop detected in /Pages structure (getAllPages)"); | 99 | "Loop detected in /Pages structure (getAllPages)"); |
| 100 | } | 100 | } |
qpdf/qtest/qpdf/pages-loop.out
| @@ -2,5 +2,5 @@ checking pages-loop.pdf | @@ -2,5 +2,5 @@ checking pages-loop.pdf | ||
| 2 | PDF Version: 1.3 | 2 | PDF Version: 1.3 |
| 3 | File is not encrypted | 3 | File is not encrypted |
| 4 | File is not linearized | 4 | File is not linearized |
| 5 | -ERROR: pages-loop.pdf (object 3 0): Loop detected in /Pages structure (getAllPages) | 5 | +ERROR: pages-loop.pdf (object 2 0): Loop detected in /Pages structure (getAllPages) |
| 6 | qpdf: errors detected | 6 | qpdf: errors detected |