mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #595 from notmasteryet/tree-28
Set default colors to avoid invalid strokeStyle or fillStyle warnings
This commit is contained in:
commit
e84087518f
1 changed files with 3 additions and 0 deletions
3
pdf.js
3
pdf.js
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue