]> git.parisson.com Git - pdf.js.git/commitdiff
code reformat
authornotmasteryet <async.processingjs@yahoo.com>
Sat, 27 Aug 2011 03:22:50 +0000 (22:22 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Sat, 27 Aug 2011 03:22:50 +0000 (22:22 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index 52fd0ffcbbb852269fcc79b52dc9349c5beb4230..5cfb7dc28149122cf967ebb75fa001dd83eb226d 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -2715,9 +2715,8 @@ var Parser = (function() {
         // stream objects are not allowed inside content streams or
         // object streams
         if (IsCmd(this.buf2, 'stream')) {
-          if (!this.allowStreams)
-            return dict;
-          return this.makeStream(dict, cipherTransform);
+          return this.allowStreams ?
+            this.makeStream(dict, cipherTransform) : dict;
         } else {
           this.shift();
         }