X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fxpdf%2FPage.h;h=6c020c7dc04d6dd5ed0a6c921220a2aad2debee4;hb=2164227e7574c89d1a03b808ec525622d42966c2;hp=c74f0b5b5d5b5dbc449ed681bdfdaa061fdca292;hpb=d9f9a6449f377b4c933b75d57541b19c6d088994;p=evince.git diff --git a/pdf/xpdf/Page.h b/pdf/xpdf/Page.h index c74f0b5b..6c020c7d 100644 --- a/pdf/xpdf/Page.h +++ b/pdf/xpdf/Page.h @@ -35,10 +35,10 @@ public: ~PageAttrs(); // Accessors. - double getX1() { return x1; } - double getY1() { return y1; } - double getX2() { return x2; } - double getY2() { return y2; } + double getX1() { return limitToCropBox ? cropX1 : x1; } + double getY1() { return limitToCropBox ? cropY1 : y1; } + double getX2() { return limitToCropBox ? cropX2 : x2; } + double getY2() { return limitToCropBox ? cropY2 : y2; } GBool isCropped() { return cropX2 > cropX1; } double getCropX1() { return cropX1; } double getCropY1() { return cropY1; } @@ -52,6 +52,7 @@ private: double x1, y1, x2, y2; double cropX1, cropY1, cropX2, cropY2; + GBool limitToCropBox; int rotate; Object resources; };