Commit b79f3ce8 authored by Ilya Kirillov's avatar Ilya Kirillov

Now arrays of the polygons for bounding path of a inline content control...

Now arrays of the polygons for bounding path of a inline content control return in the normal order.
parent c0ea6faa
......@@ -342,9 +342,13 @@ CInlineLevelSdt.prototype.GetBoundingPolygon = function()
arrRects.push(this.Bounds[Key]);
}
var oPolygon = new CPolygon();
oPolygon.fill(arrBounds);
this.BoundsPaths = oPolygon.GetPaths(0);
this.BoundsPaths = [];
for (var nIndex = 0, nCount = arrBounds.length; nIndex < nCount; ++nIndex)
{
var oPolygon = new CPolygon();
oPolygon.fill([arrBounds[nIndex]]);
this.BoundsPaths = this.BoundsPaths.concat(oPolygon.GetPaths(0));
}
}
return this.BoundsPaths;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment