From 3b911a9882fcbffd13e16e6ef92827066aa99327 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Thu, 28 Aug 2014 22:28:28 +0200 Subject: [PATCH] Update text.class.js Fixes exporting of text simple group. Thanks to Chris Buergi to make me notice --- src/shapes/text.class.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shapes/text.class.js b/src/shapes/text.class.js index 7a2104ad..2f158a56 100644 --- a/src/shapes/text.class.js +++ b/src/shapes/text.class.js @@ -849,8 +849,8 @@ : (this.height/2) - (textLines.length * this.fontSize) - this._totalLineHeight; return { - textLeft: textLeft + (this.group ? this.left : 0), - textTop: textTop + (this.group ? this.top : 0), + textLeft: textLeft + (this.group && this.group.type === 'path-group' ? this.left : 0), + textTop: textTop + (this.group && this.group.type === 'path-group' ? this.top : 0), lineTop: lineTop }; },