Skip to content

Commit

Permalink
Merge pull request #180 from adam-e-trepanier/fix-procset-ref-objs-ne…
Browse files Browse the repository at this point in the history
…ver-exist

Fix: TypeError: can't dup NilClass
  • Loading branch information
boazsegev authored Dec 7, 2020
2 parents 3226cf1 + 07f3456 commit f732cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/combine_pdf/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def catalog_pages(catalogs = nil, inheritance_hash = {})
catalogs[:ProcSet][:referenced_object].uniq!
else
catalogs[:ProcSet] = { is_reference_only: true }.dup
catalogs[:ProcSet][:referenced_object] = catalogs[:ProcSet][:referenced_object].dup
catalogs[:ProcSet][:referenced_object] = []
end
end
# (catalogs[:ColorSpace] ||= {}).update(inheritance_hash[:ColorSpace], &HASH_UPDATE_PROC_FOR_OLD) if inheritance_hash[:ColorSpace]
Expand Down

0 comments on commit f732cce

Please sign in to comment.