Skip to content

Commit

Permalink
Fix getStructureTypeStandardStructureType
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Aug 6, 2024
1 parent fe9d0f4 commit 1135e97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/verapdf/pd/structure/PDStructElem.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public static StructureType getStructureTypeStandardStructureType(StructureType
}
if (!PDFFlavour.isFlavourPDFSpecification(flavour, PDFFlavour.PDFSpecification.ISO_32000_2_0) || PDFFlavour.isFlavourFamily(flavour, PDFFlavour.SpecificationFamily.WCAG)) {
if (type != null) {
return StructureType.createStructureType(ASAtom.getASAtom(
StaticResources.getRoleMapHelper().getStandardType(type.getType())));
return new StructureType(ASAtom.getASAtom(
StaticResources.getRoleMapHelper().getStandardType(type.getType())), type.getNameSpace());
}
}
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/verapdf/pd/structure/StructureType.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class StructureType {
private final ASAtom type;
private final PDStructureNameSpace nameSpace;

private StructureType(ASAtom type, PDStructureNameSpace nameSpace) {
public StructureType(ASAtom type, PDStructureNameSpace nameSpace) {
this.type = type;
this.nameSpace = nameSpace;
}
Expand Down

0 comments on commit 1135e97

Please sign in to comment.