From 5b429185f7506f8bf01e7e89b1a127262a44d9d1 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sun, 10 May 2015 18:51:31 +0200 Subject: [PATCH] Update text.class.js avoid ruining the stack on offsetX and offsetY equal to 0 --- src/shapes/text.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes/text.class.js b/src/shapes/text.class.js index 53e01a2a..6b77f490 100644 --- a/src/shapes/text.class.js +++ b/src/shapes/text.class.js @@ -446,7 +446,7 @@ } console.log(ctx.strokeStyle); ctx[method](chars, left, top); - (offsetX || offsetY) && ctx.restore(); + this[shortM].toLive && ctx.restore(); }, /**