Skip to content

Commit

Permalink
fix @aaronleopold bug
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Nov 25, 2023
1 parent 53bebec commit 3bc9e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf/src/object/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ impl<T: Object> Object for NameTree<T> {
(None, Some(names)) => {
let names = names.resolve(resolve)?.into_array()?;
let mut new_names = Vec::new();
for pair in names.chunks(2) {
for pair in names.chunks_exact(2) {
let name = pair[0].clone().resolve(resolve)?.into_string()?;
let value = t!(T::from_primitive(pair[1].clone(), resolve));
new_names.push((name, value));
Expand Down

0 comments on commit 3bc9e63

Please sign in to comment.