Skip to content

Commit

Permalink
PDF/UA validation. Fix parentsTags calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Sep 24, 2024
1 parent dcf895e commit 7b635b8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,12 @@ void parseOperator(List<org.verapdf.model.operator.Operator> processedOperators,
// XOBJECT
case Operators.DO:
Long mcid = null;
List<String> parentsTags = new LinkedList<>();
List<String> parentsTags;
if (!markedContentStack.empty()) {
mcid = markedContentStack.peek().getInheritedMCID();
parentsTags = markedContentStack.peek().getParentsTags();
} else {
parentsTags = new LinkedList<>(this.parentsTags);
}
COSObject parentStructElem = getParentStructElem(structureElementAccessObject, mcid);
if (parentStructElem == null) {
Expand Down

0 comments on commit 7b635b8

Please sign in to comment.