Update itext.class.js

This commit is contained in:
Andrea Bogazzi 2015-03-07 15:57:04 +01:00
parent 0933c6f5c2
commit 9ee71616bf

View file

@ -860,12 +860,12 @@
var fill = styleDeclaration.fill || this.fill;
ctx.fillStyle = fill.toLive
? fill.toLive(ctx)
? fill.toLive(ctx, this)
: fill;
if (styleDeclaration.stroke) {
ctx.strokeStyle = (styleDeclaration.stroke && styleDeclaration.stroke.toLive)
? styleDeclaration.stroke.toLive(ctx)
? styleDeclaration.stroke.toLive(ctx, this)
: styleDeclaration.stroke;
}