Merge pull request #1628 from asturur/text-export-fpr-groups

Update text.class.js
This commit is contained in:
Juriy Zaytsev 2014-08-30 14:57:13 +04:00
commit cefc838e90

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