Browse Source

Merge pull request #595 from notmasteryet/tree-28

Set default colors to avoid invalid strokeStyle or fillStyle warnings
Andreas Gal 14 years ago
parent
commit
e84087518f
  1. 3
      pdf.js

3
pdf.js

@ -4887,6 +4887,9 @@ var CanvasExtraState = (function canvasExtraState() {
this.strokeColorSpaceObj = null; this.strokeColorSpaceObj = null;
this.fillColorObj = null; this.fillColorObj = null;
this.strokeColorObj = null; this.strokeColorObj = null;
// Default fore and background colors
this.fillColor = "#000000";
this.strokeColor = "#000000";
this.old = old; this.old = old;
} }

Loading…
Cancel
Save