[Pkg-javascript-commits] [pdf.js] 06/139: Fix error in WidgetAnnotation

David Prévot taffit at moszumanska.debian.org
Fri Jan 9 21:18:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit c889e4e679519f108fd61c7848406a5517241236
Author: Rob Wu <rob at robwu.nl>
Date:   Thu Oct 16 18:08:24 2014 +0200

    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 3bf8a82..881671b 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.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list