Skip to content

Commit

Permalink
Merge pull request #596 from veraPDF/struct_tree_node
Browse files Browse the repository at this point in the history
Fix getChildren in GFPDStructTreeNode
  • Loading branch information
MaximPlusov authored Oct 20, 2023
2 parents db28c9b + 18becb4 commit 56f1a08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private static List<String> getChildrenStandardTypes(GFPDStructTreeNode element)

public List<GFPDStructElem> getChildren() {
if (children == null) {
List<org.verapdf.pd.structure.PDStructElem> elements = ((org.verapdf.pd.structure.PDStructElem) simplePDObject).getStructChildren();
List<org.verapdf.pd.structure.PDStructElem> elements = ((org.verapdf.pd.structure.PDStructTreeNode) simplePDObject).getStructChildren();
if (!elements.isEmpty()) {
List<GFPDStructElem> res = new ArrayList<>(elements.size());
for (org.verapdf.pd.structure.PDStructElem element : elements) {
Expand Down

0 comments on commit 56f1a08

Please sign in to comment.