Merge pull request #2857 from asturur/text-fixe

Proper fix for style detection on iText / textbox
This commit is contained in:
Andrea Bogazzi 2016-03-27 23:48:42 +02:00
commit b1bcca060c

View file

@ -9,7 +9,7 @@
* @private
*/
_setSVGTextLineText: function(lineIndex, textSpans, height, textLeftOffset, textTopOffset, textBgRects) {
if (!this.styles[lineIndex]) {
if (!this._getLineStyle(lineIndex)) {
fabric.Text.prototype._setSVGTextLineText.call(this,
lineIndex, textSpans, height, textLeftOffset, textTopOffset);
}