Commit 4ac49438 authored by Sergey Luzyanin's avatar Sergey Luzyanin

open gradients without colors

parent 2d2c52f2
......@@ -776,6 +776,11 @@ CGraphicFrame.prototype.deselect = CShape.prototype.deselect;
CGraphicFrame.prototype.Update_ContentIndexing = function()
{};
CGraphicFrame.prototype.Get_TopDocumentContent = function()
{
return null;
};
CGraphicFrame.prototype.draw = function(graphics)
{
......
......@@ -2272,25 +2272,26 @@ function BinaryPPTYLoader()
}
}
if (null != uni_fill.fill.lin && null != uni_fill.fill.path)
}
if (null != uni_fill.fill.lin && null != uni_fill.fill.path)
{
// ms office не открывает такие файлы.
uni_fill.fill.setPath(null);
}
if(uni_fill.fill.colors.length < 2)
{
if(uni_fill.fill.colors.length === 1)
{
// ms office не открывает такие файлы.
uni_fill.fill.setPath(null);
var oUniColor = uni_fill.fill.colors[0].color;
uni_fill.fill = new AscFormat.CSolidFill();
uni_fill.fill.color = oUniColor;
}
if(uni_fill.fill.colors.length < 2)
else
{
if(uni_fill.fill.colors.length === 1)
{
var oUniColor = uni_fill.fill.colors[0].color;
uni_fill.fill = new AscFormat.CSolidFill();
uni_fill.fill.color = oUniColor;
}
else
{
uni_fill.fill = new AscFormat.CSolidFill();
uni_fill.fill.color = AscFormat.CreateUniColorRGB(0, 0, 0);
}
uni_fill.fill = new AscFormat.CSolidFill();
uni_fill.fill.color = AscFormat.CreateUniColorRGB(0, 0, 0);
}
}
......
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