Skip to content

Commit

Permalink
Fix validate_page_tree() to return leaf node count.
Browse files Browse the repository at this point in the history
  • Loading branch information
deven committed Jul 2, 2022
1 parent c77e2c3 commit 9d95ab8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/PDF/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,9 @@ sub validate_page_tree {
warn join(": ", $self->{-file} || (), "Warning: Fixing: $path->{Count} = $count\n");
$page_tree_node->{Count} = $count;
}

# Return leaf node count.
return $count;
}

# Validate page object.
Expand Down

0 comments on commit 9d95ab8

Please sign in to comment.