From 9ee71616bf786e85414abf0fa9086e234bfd5048 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sat, 7 Mar 2015 15:57:04 +0100 Subject: [PATCH] Update itext.class.js --- src/shapes/itext.class.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shapes/itext.class.js b/src/shapes/itext.class.js index 7d5101fd..b3f3fbeb 100644 --- a/src/shapes/itext.class.js +++ b/src/shapes/itext.class.js @@ -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; }