Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Persch
poppler
Commits
e87818f7
Commit
e87818f7
authored
Nov 16, 2018
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Two Object::copy calls less
parent
13708e8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
poppler/Catalog.cc
poppler/Catalog.cc
+1
-2
poppler/Page.cc
poppler/Page.cc
+3
-3
No files found.
poppler/Catalog.cc
View file @
e87818f7
...
...
@@ -252,8 +252,7 @@ bool Catalog::cachePageTree(int page)
if
(
pagesList
->
empty
())
return
false
;
Object
pagesDict
=
pagesList
->
back
().
copy
();
Object
kids
=
pagesDict
.
dictLookup
(
"Kids"
);
Object
kids
=
pagesList
->
back
().
dictLookup
(
"Kids"
);
if
(
!
kids
.
isArray
())
{
error
(
errSyntaxError
,
-
1
,
"Kids object (page {0:uld}) is wrong type ({1:s})"
,
pages
.
size
()
+
1
,
kids
.
getTypeName
());
...
...
poppler/Page.cc
View file @
e87818f7
...
...
@@ -170,9 +170,9 @@ PageAttrs::PageAttrs(PageAttrs *attrs, Dict *dict) {
separationInfo
=
dict
->
lookup
(
"SeparationInfo"
);
// resource dictionary
obj1
=
dict
->
lookup
(
"Resources"
);
if
(
obj
1
.
isDict
())
{
resources
=
obj1
.
copy
(
);
Object
objResources
=
dict
->
lookup
(
"Resources"
);
if
(
obj
Resources
.
isDict
())
{
resources
=
std
::
move
(
objResources
);
}
}
...
...
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