fix cycle safe

This commit is contained in:
Pete Matsyburka committed 2026-08-21 18:56:22 +03:00
1 parent fef203daed
commit b8cf525034
1 file changed
+2
+2
View File
@@ -112,6 +112,8 @@ module HexaPDF
end end
module CycleSafeInheritedValue module CycleSafeInheritedValue
using HexaPDF::Type::AcroForm::Field::HashRefinement
def inherited_value(field, name) def inherited_value(field, name)
seen = Set.new.compare_by_identity seen = Set.new.compare_by_identity
seen << field.value seen << field.value