Merge pull request #595 from notmasteryet/tree-28

Set default colors to avoid invalid strokeStyle or fillStyle warnings
This commit is contained in:
Andreas Gal 2011-10-02 18:28:11 -07:00
commit e84087518f

3
pdf.js
View File

@ -4887,6 +4887,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;
}