Commit adac6b23 authored by Sergey Luzyanin's avatar Sergey Luzyanin

return scheme color for cell background

parent c233a952
...@@ -257,8 +257,15 @@ CLayoutThumbnail.prototype.get_Height = function() { return this.Height; }; ...@@ -257,8 +257,15 @@ CLayoutThumbnail.prototype.get_Height = function() { return this.Height; };
function CBackground (obj) function CBackground (obj)
{ {
if (obj) if (obj)
{
if (obj.Unifill && obj.Unifill.fill && obj.Unifill.fill.type === window['Asc'].c_oAscFill.FILL_TYPE_SOLID && obj.Unifill.fill.color)
{
this.Color = AscCommon.CreateAscColor(obj.Unifill.fill.color);
}
else
{ {
this.Color = (undefined != obj.Color && null != obj.Color) ? AscCommon.CreateAscColorCustom(obj.Color.r, obj.Color.g, obj.Color.b) : null; this.Color = (undefined != obj.Color && null != obj.Color) ? AscCommon.CreateAscColorCustom(obj.Color.r, obj.Color.g, obj.Color.b) : null;
}
this.Value = (undefined != obj.Value) ? obj.Value : null; this.Value = (undefined != obj.Value) ? obj.Value : null;
} }
else else
...@@ -267,10 +274,10 @@ function CBackground (obj) ...@@ -267,10 +274,10 @@ function CBackground (obj)
this.Value = 1; this.Value = 1;
} }
} }
CBackground.prototype.get_Color = function (){return this.Color;} CBackground.prototype.get_Color = function (){return this.Color;};
CBackground.prototype.put_Color = function (v){this.Color = (v) ? v: null;} CBackground.prototype.put_Color = function (v){this.Color = (v) ? v: null;};
CBackground.prototype.get_Value = function (){return this.Value;} CBackground.prototype.get_Value = function (){return this.Value;};
CBackground.prototype.put_Value = function (v){this.Value = v;} CBackground.prototype.put_Value = function (v){this.Value = v;};
function CTablePositionH(obj) function CTablePositionH(obj)
{ {
......
...@@ -4139,8 +4139,15 @@ background-repeat: no-repeat;\ ...@@ -4139,8 +4139,15 @@ background-repeat: no-repeat;\
function CBackground(obj) function CBackground(obj)
{ {
if (obj) if (obj)
{
if (obj.Unifill && obj.Unifill.fill && obj.Unifill.fill.type === window['Asc'].c_oAscFill.FILL_TYPE_SOLID && obj.Unifill.fill.color)
{
this.Color = AscCommon.CreateAscColor(obj.Unifill.fill.color);
}
else
{ {
this.Color = (undefined != obj.Color && null != obj.Color) ? AscCommon.CreateAscColorCustom(obj.Color.r, obj.Color.g, obj.Color.b) : null; this.Color = (undefined != obj.Color && null != obj.Color) ? AscCommon.CreateAscColorCustom(obj.Color.r, obj.Color.g, obj.Color.b) : null;
}
this.Value = (undefined != obj.Value) ? obj.Value : null; this.Value = (undefined != obj.Value) ? obj.Value : null;
} }
else else
......
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