Commit 3719bd56 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

не применялся градиент, когда цветов в градиенте больше двух.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63366 954022d7-b5bf-4e40-9824-e11837661b57
parent a19d8c4d
...@@ -2918,8 +2918,12 @@ function CorrectUniFill(asc_fill, unifill) ...@@ -2918,8 +2918,12 @@ function CorrectUniFill(asc_fill, unifill)
} }
else if (undefined != _positions) else if (undefined != _positions)
{ {
if (_positions.length == ret.fill.colors.length) if (_positions.length <= ret.fill.colors.length)
{ {
if(_positions.length < ret.fill.colors.length)
{
ret.fill.colors.splice(_positions.length, ret.fill.colors.length - _positions.length);
}
for (var i = 0; i < _positions.length; i++) for (var i = 0; i < _positions.length; i++)
{ {
ret.fill.colors[i].pos = _positions[i]; ret.fill.colors[i].pos = _positions[i];
......
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