Branchport r487750

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=487757
remotes/origin/okular3-playground
Albert Astals Cid 21 years ago
parent 75510d8697
commit 83c7b6028a
  1. 7
      generators/xpdf/xpdf/xpdf/Page.cc

@ -66,6 +66,13 @@ PageAttrs::PageAttrs(PageAttrs *attrs, Dict *dict) {
if (!haveCropBox) {
cropBox = mediaBox;
}
else
{
// cropBox can not be bigger than mediaBox
if (cropBox.x2 - cropBox.x1 > mediaBox.x2 - mediaBox.x1 ||
cropBox.y2 - cropBox.y1 > mediaBox.y2 - mediaBox.y1)
cropBox = mediaBox;
}
// other boxes
bleedBox = cropBox;

Loading…
Cancel
Save