Take advantage of SVGdatStretched() rather than doing it by hand.

This commit is contained in:
Davide P. Cervone 2014-09-11 08:05:29 -04:00
parent cfc6fa2ae0
commit 5d266d2f81

View File

@ -1665,14 +1665,10 @@
},
SVGmultiline: function (span) {MML.mbase.SVGautoloadFile("multiline")},
SVGstretchH: function (w) {
var svg = this.SVG(), child;
var svg = this.SVG();
this.SVGhandleSpace(svg);
for (var i = 0, m = this.data.length; i < m; i++) {
if (!this.data[i]) continue;
if (i === this.core) {child = this.data[i].SVGstretchH(w)}
else {child = this.data[i].toSVG()}
svg.Add(child,svg.w,0);
}
for (var i = 0, m = this.data.length; i < m; i++)
{svg.Add(this.SVGdataStretched(i,w),svg.w,0)}
svg.Clean();
this.SVGhandleColor(svg);
this.SVGsaveData(svg);