Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorRemi Cohen-Scali <rcoscali@cvs.gnome.org>2004-01-13 04:05:03 (GMT)
committer RĂ©mi Cohen-Scali <rcoscali@src.gnome.org>2004-01-13 04:05:03 (GMT)
commit54f54807f16be1b5093dd7a1b7f51878947d30e6 (patch)
tree5d32b9c342b88ce645616aebda670b041c84f12f /pdf
parent6f1bebdea1c8a0302544588f81506bfe72750124 (diff)
:displaySlice): Changed the size of the statements enclosed in ifdef
2004-01-13 Remi Cohen-Scali <rcoscali@cvs.gnome.org> * xpdf/Page.cc (Page::displaySlice): Changed the size of the statements enclosed in ifdef USE_ANNOTS_VIEW in order to disable annotations display when annots view is unused.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/xpdf/Page.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/pdf/xpdf/Page.cc b/pdf/xpdf/Page.cc
index fb7abc0..c7a1e13 100644
--- a/pdf/xpdf/Page.cc
+++ b/pdf/xpdf/Page.cc
@@ -338,22 +338,21 @@ void Page::displaySlice(OutputDev *out, double dpi, int rotate,
//~ need to reset CTM ???
annotList = new Annots(xref, annots.fetch(xref, &obj));
obj.free();
+#ifdef USE_ANNOTS_VIEW
if (annotList->getNumAnnots() > 0) {
if (globalParams->getPrintCommands()) {
printf("***** Annotations\n");
}
for (i = 0; i < annotList->getNumAnnots(); ++i) {
Annot *annot = annotList->getAnnot(i);
- if ((annotDisplayDecideCbk && (*annotDisplayDecideCbk)(annot, annotDisplayDecideCbkData))
-#ifdef USE_ANNOTS_VIEW
- || !annotDisplayDecideCbk
-#endif
- )
+ if ((annotDisplayDecideCbk &&
+ (*annotDisplayDecideCbk)(annot, annotDisplayDecideCbkData)) ||
+ !annotDisplayDecideCbk)
annot->draw(gfx);
-
}
out->dump();
}
+#endif
delete annotList;
delete gfx;