From c889e4e679519f108fd61c7848406a5517241236 Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Thu, 16 Oct 2014 18:08:24 +0200 Subject: [PATCH] Fix error in WidgetAnnotation --- src/core/annotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/annotation.js b/src/core/annotation.js index 3bf8a8249..881671bd7 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -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.