Commit ce1a4a11 authored by Sergey Luzyanin's avatar Sergey Luzyanin

Проверка на случай невалидной градиентной заливки.

parent eb312aa8
......@@ -2427,6 +2427,21 @@ function BinaryPPTYLoader()
// ms office не открывает такие файлы.
uni_fill.fill.setPath(null);
}
if(uni_fill.fill.colors.length < 2)
{
if(uni_fill.fill.colors.length === 1)
{
var oUniColor = uni_fill.fill.colors[0].color;
uni_fill.fill = new CSolidFill();
uni_fill.fill.color = oUniColor;
}
else
{
uni_fill.fill = new CSolidFill();
uni_fill.fill.color = CreateUniColorRGB(0, 0, 0);
}
}
}
break;
......
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