Fix error in WidgetAnnotation

This commit is contained in:
Rob Wu 2014-10-16 18:08:24 +02:00
parent e9072ac018
commit c889e4e679

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.