diff options
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/xpdf/Page.cc')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-src/xpdf/Page.cc | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/Page.cc b/Build/source/libs/xpdf/xpdf-src/xpdf/Page.cc index 368bc68dd8a..322f07063e7 100644 --- a/Build/source/libs/xpdf/xpdf-src/xpdf/Page.cc +++ b/Build/source/libs/xpdf/xpdf-src/xpdf/Page.cc @@ -8,10 +8,6 @@ #include <aconf.h> -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - #include <stddef.h> #include "gmempp.h" #include "Trace.h" @@ -381,7 +377,6 @@ void Page::displaySlice(OutputDev *out, double hDPI, double vDPI, PDFRectangle box; Gfx *gfx; Object obj; - Annots *annotList; AcroForm *form; int i; @@ -426,21 +421,20 @@ void Page::displaySlice(OutputDev *out, double hDPI, double vDPI, // draw (non-form) annotations if (globalParams->getDrawAnnotations()) { - annotList = new Annots(doc, getAnnots(&obj)); - obj.free(); - annotList->generateAnnotAppearances(); - if (annotList->getNumAnnots() > 0) { + Annots *annots2 = doc->getAnnots(); + annots2->generateAnnotAppearances(num); + int n = annots2->getNumAnnots(num); + if (n > 0) { if (globalParams->getPrintCommands()) { printf("***** Annotations\n"); } - for (i = 0; i < annotList->getNumAnnots(); ++i) { + for (i = 0; i < n; ++i) { if (abortCheckCbk && (*abortCheckCbk)(abortCheckCbkData)) { break; } - annotList->getAnnot(i)->draw(gfx, printing); + annots2->getAnnot(num, i)->draw(gfx, printing); } } - delete annotList; } // draw form fields @@ -552,3 +546,4 @@ void Page::getDefaultCTM(double *ctm, double hDPI, double vDPI, delete state; #endif } + |