1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #5418 from Rob--W/issue-5417-annot-error

Fix error in WidgetAnnotation
This commit is contained in:
Yury Delendik 2014-10-21 14:27:39 -05:00
commit 419ba54e58

View file

@ -347,7 +347,7 @@ var WidgetAnnotation = (function WidgetAnnotationClosure() {
var name = namedItem.get('T');
if (name) {
fieldName.unshift(stringToPDFString(name));
} else {
} else if (parent && ref) {
// The field name is absent, that means more than one field
// with the same name may exist. Replacing the empty name
// with the '`' plus index in the parent's 'Kids' array.