]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/Page.cc
Add «nb» to ALL_LINGUAS too.
[evince.git] / pdf / xpdf / Page.cc
index e12e65cd2f68c1b71fae6f60c9b220d483f40db3..817e1d52823e3e16507693c91fe84bdcfad5bf4b 100644 (file)
@@ -226,18 +226,20 @@ Page::~Page() {
   contents.free();
 }
 
-void Page::display(OutputDev *out, double hDPI, double vDPI, int rotate,
+void Page::display(OutputDev *out, double hDPI, double vDPI,
+                  int rotate, GBool crop,
                   Links *links, Catalog *catalog,
                   GBool (*abortCheckCbk)(void *data),
                   void *abortCheckCbkData,
                    GBool (*annotDisplayDecideCbk)(Annot *annot, void *user_data),
                    void *annotDisplayDecideCbkData) {
-  displaySlice(out, hDPI, vDPI, rotate, -1, -1, -1, -1, links, catalog,
+  displaySlice(out, hDPI, vDPI, rotate, crop, -1, -1, -1, -1, links, catalog,
               abortCheckCbk, abortCheckCbkData,
                annotDisplayDecideCbk, annotDisplayDecideCbkData);
 }
 
-void Page::displaySlice(OutputDev *out, double hDPI, double vDPI, int rotate,
+void Page::displaySlice(OutputDev *out, double hDPI, double vDPI,
+                       int rotate, GBool crop,
                        int sliceX, int sliceY, int sliceW, int sliceH,
                        Links *links, Catalog *catalog,
                        GBool (*abortCheckCbk)(void *data),
@@ -322,7 +324,7 @@ void Page::displaySlice(OutputDev *out, double hDPI, double vDPI, int rotate,
   }
 
   gfx = new Gfx(xref, out, num, attrs->getResourceDict(),
-               hDPI, vDPI, &box, isCropped(), cropBox, rotate,
+               hDPI, vDPI, &box, crop && isCropped(), cropBox, rotate,
                abortCheckCbk, abortCheckCbkData);
   contents.fetch(xref, &obj);
   if (!obj.isNull()) {