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() ...@@ -342,9 +342,13 @@ CInlineLevelSdt.prototype.GetBoundingPolygon = function()
arrRects.push(this.Bounds[Key]); arrRects.push(this.Bounds[Key]);
} }
var oPolygon = new CPolygon(); this.BoundsPaths = [];
oPolygon.fill(arrBounds); for (var nIndex = 0, nCount = arrBounds.length; nIndex < nCount; ++nIndex)
this.BoundsPaths = oPolygon.GetPaths(0); {
var oPolygon = new CPolygon();
oPolygon.fill([arrBounds[nIndex]]);
this.BoundsPaths = this.BoundsPaths.concat(oPolygon.GetPaths(0));
}
} }
return this.BoundsPaths; 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