Commit 3f1cafd7 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 34989

parent f76bb183
......@@ -2398,7 +2398,10 @@ function BinaryPPTYLoader()
}
else
{
uni_fill.fill.color.setMods(new AscFormat.CColorModifiers());
if(uni_fill.fill.color){
uni_fill.fill.color.setMods(new AscFormat.CColorModifiers());
}
}
break;
}
......
......@@ -2474,8 +2474,10 @@ function CBinaryFileWriter()
{
oThis.StartRecord(c_oAscFill.FILL_TYPE_SOLID);
oThis.CorrectUniColorAlpha(fill.color, trans);
oThis.WriteRecord1(0, fill.color, oThis.WriteUniColor);
if(fill.color){
oThis.CorrectUniColorAlpha(fill.color, trans);
oThis.WriteRecord1(0, fill.color, oThis.WriteUniColor);
}
oThis.EndRecord();
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