Proper fix for style detection

This commit is contained in:
Andrea Bogazzi 2016-03-27 23:44:43 +02:00
parent 5b1a89c946
commit ad732f078d

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