| Summary: | Wrong page size and layout in some documents | ||
|---|---|---|---|
| Product: | [Unmaintained] kpdf | Reporter: | rack |
| Component: | general | Assignee: | Albert Astals Cid <aacid> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
rack
2005-12-11 13:26:18 UTC
SVN commit 487750 by aacid:
cropBox can not be bigger than mediaBox
Thanks to Peter Linnell (mrdocs) from the Scribus Team for helping with the debugging
BUGS: 118110
M +7 -0 Page.cc
--- branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf/Page.cc #487749:487750
@@ -66,6 +66,13 @@
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;
|