]> git.parisson.com Git - pdf.js.git/commitdiff
Set default colors to avoid invalid strokeStyle or fillStyle warnings
authornotmasteryet <async.processingjs@yahoo.com>
Sun, 2 Oct 2011 22:35:59 +0000 (17:35 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Sun, 2 Oct 2011 22:35:59 +0000 (17:35 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index ae8984907d6fca2f03b75b8800cfbb03ce36743d..27e65370d146fa0a069ae00ef4cd6c0e8118ce96 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -4884,6 +4884,9 @@ var CanvasExtraState = (function canvasExtraState() {
     this.strokeColorSpaceObj = null;
     this.fillColorObj = null;
     this.strokeColorObj = null;
+    // Default fore and background colors
+    this.fillColor = "#000000";
+    this.strokeColor = "#000000";
 
     this.old = old;
   }