Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
poppler
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oliver Sander
poppler
Commits
888d76a2
Commit
888d76a2
authored
Dec 12, 2005
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* poppler/Page.cc: Ignore cropBox if it seems incorrect
parent
bcc5e3af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
ChangeLog
ChangeLog
+4
-0
poppler/Page.cc
poppler/Page.cc
+7
-0
No files found.
ChangeLog
View file @
888d76a2
2005-12-12 Albert Astals Cid <aacid@kde.org>
* poppler/Page.cc: Ignore cropBox if it seems incorrect
2005-12-12 Kristian Høgsberg <krh@redhat.com>
2005-12-12 Kristian Høgsberg <krh@redhat.com>
* Makefile.am:
* Makefile.am:
...
...
poppler/Page.cc
View file @
888d76a2
...
@@ -67,6 +67,13 @@ PageAttrs::PageAttrs(PageAttrs *attrs, Dict *dict) {
...
@@ -67,6 +67,13 @@ PageAttrs::PageAttrs(PageAttrs *attrs, Dict *dict) {
if
(
!
haveCropBox
)
{
if
(
!
haveCropBox
)
{
cropBox
=
mediaBox
;
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
// other boxes
bleedBox
=
cropBox
;
bleedBox
=
cropBox
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment