Commit 3e4f9432 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

правка с потерей Mods в SolidFill

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53932 954022d7-b5bf-4e40-9824-e11837661b57
parent b38eb832
......@@ -2005,19 +2005,28 @@ function BinaryPPTYLoader()
uni_fill.fill = new CSolidFill();
uni_fill.fill.color = this.ReadUniColor();
uni_fill.fill.color.Mods = new CColorModifiers();
var mods = uni_fill.fill.color.Mods.Mods;
var _len = mods.length;
for (var i = 0; i < _len; i++)
{
if (mods[i].name == "alpha")
{
uni_fill.transparent = (255 * mods[i].val / 100000) >> 0;
mods.splice(i, 1);
break;
}
}
// uni_fill.fill.color.Mods = new CColorModifiers();
if(uni_fill.fill
&& uni_fill.fill.color
&& uni_fill.fill.color.Mods
&& uni_fill.fill.color.Mods.Mods)
{
var mods = uni_fill.fill.color.Mods.Mods;
var _len = mods.length;
for (var i = 0; i < _len; i++)
{
if (mods[i].name == "alpha")
{
uni_fill.transparent = (255 * mods[i].val / 100000) >> 0;
mods.splice(i, 1);
break;
}
}
}
else
{
uni_fill.fill.color.Mods = new CColorModifiers();
}
break;
}
case FILL_TYPE_NOFILL:
......
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