Update text.class.js

Fixes exporting of text simple group.
Thanks to Chris Buergi to make me notice
This commit is contained in:
Andrea Bogazzi 2014-08-28 22:28:28 +02:00
parent 959bdcfdf4
commit 3b911a9882

View file

@ -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
};
},